<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                > 在移動app開發中,有各種形式的導航。導航組件中導航器和路由器是可以組合的,這樣就可以定制你需要的導航組件了。 ### **選項卡導航** 效果截圖: 作為一個頂層導航器 ![](https://box.kancloud.cn/c657fe613f0846ce4ad6bd85a40fb4e3_408x582.png) 嵌套在導航器中 ![](https://box.kancloud.cn/3781aa0a7369b74366ad9b924d431e00_407x647.png) 對于頁面內組件暫時還未找到好的方法。 **1.頂層切換卡** index.android.js ~~~ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; import Tab from './tab'; class HomeScreen extends Component { render() { return ( <Tab /> ); } } AppRegistry.registerComponent('tang', () => HomeScreen); ~~~ tab.js ~~~ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; import { TabNavigator,StackNavigator } from "react-navigation"; import { ChatScreen } from "./app"; class RecentChatsScreen extends React.Component { render() { return ( <Text>作為單獨組件123</Text> ) } } class AllContactsScreen extends React.Component { render() { return <Text>作為單獨組件2</Text> } } const MainScreenNavigator = TabNavigator({ Recent: { screen: RecentChatsScreen }, All: { screen: AllContactsScreen }, }); export default MainScreenNavigator; ~~~ **1.和導航器嵌套** tab.js ~~~ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; import { TabNavigator,StackNavigator } from "react-navigation"; import { ChatScreen } from "./app"; class RecentChatsScreen extends React.Component { render() { return ( <Text>作為單獨組件123</Text> ) } } class AllContactsScreen extends React.Component { render() { return <Text>作為單獨組件2</Text> } } const MainScreenNavigator = TabNavigator({ Recent: { screen: RecentChatsScreen }, All: { screen: AllContactsScreen }, }); MainScreenNavigator.navigationOptions = { title: 'My Chats', }; ChatScreen.navigationOptions = { title: 'My Chats', }; const SimpleApp = StackNavigator({ Home: { screen: MainScreenNavigator }, Chat: { screen: ChatScreen }, }); export default SimpleApp; ~~~ app.js ~~~ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; export class ChatScreen extends Component { static navigationOptions = { title: 'Chat', }; render() { return ( <View> <Text>Chat with Lucy</Text> </View> ); } } export class HelloScreen extends Component { static navigationOptions = { title: 'Hello', }; render() { return ( <View> <Text>Hello 組件 </Text> </View> ); } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看