From a91a33b3d4a3b19e55d3e256c5db7a13d961185a Mon Sep 17 00:00:00 2001 From: ethangk Date: Wed, 1 Mar 2017 17:48:39 -0800 Subject: [PATCH] Update UsingNavigators.md Added a comment about components not importing if their format is`.jsx` --- docs/UsingNavigators.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/UsingNavigators.md b/docs/UsingNavigators.md index 7dcb86699a0a..880416b2aa13 100644 --- a/docs/UsingNavigators.md +++ b/docs/UsingNavigators.md @@ -46,6 +46,7 @@ export default class MyScene extends Component { } } ``` +Note, the file extension **must** be `.js` and not `.jsx`. Components with a `.jsx` extension will fail to load. Notice the `export default` in front of the component declaration. This will _export_ the component, and in turn allow other components to _import_ it later on, like so: