2016-11-01 182 views
0

native-router-flux的標籤欄。當我使用tabbar時,Navbar在哪裏是屏幕的頂部顯示。所以我想刪除那個Navbar。但我做不到。 PLZ幫助我!在react-native-router-flux標籤欄中隱藏導航欄

import React, { Component } from 'react'; 
import { 
    AppRegistry, 
    StyleSheet, 
    Text, 
    TextInput, 
    Navigator, 
    View 
} from 'react-native'; 
import {Scene, Router} from 'react-native-router-flux'; 
import Home from './Home'; 
import Shake from './Shake'; 
import Profile from './Profile'; 



export default class JunProject extends Component { 
    render() { 
    return (
    <Router> 
     <Scene key="tabbar" tabs={true} hideNavBar={true} > 
     <Scene key="Home" component={Home} title="Home" initial={true} /> 
     <Scene key="Shake" component={Shake} title="Shake" /> 
     <Scene key="Profile" component={Profile} title="Profile" /> 
     </Scene> 
    </Router> 
); 
    } 
    } 



    AppRegistry.registerComponent('JunProject',() => JunProject); 

回答