mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Updated docs for next
This commit is contained in:
@@ -8,7 +8,7 @@ cross-platform needs, or check out
|
||||
<a href="https://github.com/wix/react-native-navigation" target="_blank">react-native-navigation</a>, a
|
||||
component that aims to provide native navigation on both iOS and Android.</p><p>To set up the navigator, provide the <code>initialRoute</code> prop with a route
|
||||
object. A route object is used to describe each scene that your app
|
||||
navigates to. <code>initialRoute</code> represents the first route in your navigator.</p><div class="prism language-javascript">import React<span class="token punctuation">,</span> <span class="token punctuation">{</span> Component <span class="token punctuation">}</span> from <span class="token string">'react'</span><span class="token punctuation">;</span>
|
||||
navigates to. <code>initialRoute</code> represents the first route in your navigator.</p><div class="prism language-javascript">import React<span class="token punctuation">,</span> <span class="token punctuation">{</span> Component<span class="token punctuation">,</span> PropTypes <span class="token punctuation">}</span> from <span class="token string">'react'</span><span class="token punctuation">;</span>
|
||||
import <span class="token punctuation">{</span> NavigatorIOS<span class="token punctuation">,</span> Text <span class="token punctuation">}</span> from <span class="token string">'react-native'</span><span class="token punctuation">;</span>
|
||||
|
||||
export default class <span class="token class-name">NavigatorIOSApp</span> extends <span class="token class-name">Component</span> <span class="token punctuation">{</span>
|
||||
|
||||
Reference in New Issue
Block a user