From 69db75206702b24b8b5dce4df443094469b5154d Mon Sep 17 00:00:00 2001 From: James Ide Date: Wed, 13 May 2015 21:05:50 -0700 Subject: [PATCH] Move requireNativeComponent call below the complete MapView definition requireNativeComponent should be called after the wrapper component is fully defined, including its static properties. --- docs/NativeComponentsIOS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/NativeComponentsIOS.md b/docs/NativeComponentsIOS.md index e15a6ef7e..acdaaa62d 100644 --- a/docs/NativeComponentsIOS.md +++ b/docs/NativeComponentsIOS.md @@ -87,8 +87,6 @@ class MapView extends React.Component { } } -var RCTMap = requireNativeComponent('RCTMap', MapView); - MapView.propTypes = { /** * When this property is set to `true` and a valid camera is associated @@ -100,6 +98,8 @@ MapView.propTypes = { pitchEnabled: React.PropTypes.bool, }; +var RCTMap = requireNativeComponent('RCTMap', MapView); + module.exports = MapView; ```