From 70558b9e70b11c1a741364761cda4f72cc2faed2 Mon Sep 17 00:00:00 2001 From: Nicholas Juntilla Date: Thu, 21 Sep 2017 12:20:09 -0700 Subject: [PATCH] Add the import statement to examples Summary: As a new user it took me a while to figure out you can import these examples directly. The import statement completes the example for new users like me who have no idea these components can be imported. It is a very important piece of information and it is hard to find otherwise. I think this should be added to all the other component examples as well. Documentation only. Closes https://github.com/facebook/react-native/pull/15501 Differential Revision: D5882436 Pulled By: hramos fbshipit-source-id: 2da0fe4c7c41e2fdb6b13a945460e17e16442d62 --- Libraries/Components/Button.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Components/Button.js b/Libraries/Components/Button.js index 25d473f08209d6..9729f8832bd440 100644 --- a/Libraries/Components/Button.js +++ b/Libraries/Components/Button.js @@ -38,6 +38,9 @@ const invariant = require('fbjs/lib/invariant'); * Example usage: * * ``` + * import { Button } from 'react-native'; + * ... + * *