2017-11-08 11 views
0

私はルータフラックスライブラリを使用していますが、基本的には、セッションが存在する場合のみ戻るボタンをナビゲーションバーに表示したい場合や、戻るボタンを非表示にする必要があります。出来ますか?どのようにして[React Native]のナビゲーションバーに戻るボタンを動的に追加できますか?

これは私が私のコンポーネントでは、このような無効戻るボタンを持っている私のシーン

<Scene 
     component={Devices} 
     hideNavBar={true} 
     key='devices' 
     title='Devices' 
     headerTintColor="#ffffff" /> 

です。

export default class Devices extends Component { 

    static navigationOptions = { 
    headerLeft: null 
    }; 
} 

答えて

0

これは、それを解決し

//If session does not exists 
Actions.refresh({key: 'devices', renderLeftButton:null}); 
関連する問題