mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
RN: Cleanup Comment Reference to Navigator (#44542)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44542 React Native no longer has a `Navigator` component, so let's clean up this reference in a comment in the `StatusBar` component definition. Changelog: [General][Changed] - Obsolete comments referencing Navigator Reviewed By: GijsWeterings Differential Revision: D57251899 fbshipit-source-id: bf2923bcaf22daf525381efbc3577c3610afaec4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cdc3b9cdfc
commit
651c1d2cf5
@@ -163,29 +163,9 @@ function createStackEntry(props: any): any {
|
||||
/**
|
||||
* Component to control the app status bar.
|
||||
*
|
||||
* ### Usage with Navigator
|
||||
*
|
||||
* It is possible to have multiple `StatusBar` components mounted at the same
|
||||
* time. The props will be merged in the order the `StatusBar` components were
|
||||
* mounted. One use case is to specify status bar styles per route using `Navigator`.
|
||||
*
|
||||
* ```
|
||||
* <View>
|
||||
* <StatusBar
|
||||
* backgroundColor="blue"
|
||||
* barStyle="light-content"
|
||||
* />
|
||||
* <Navigator
|
||||
* initialRoute={{statusBarHidden: true}}
|
||||
* renderScene={(route, navigator) =>
|
||||
* <View>
|
||||
* <StatusBar hidden={route.statusBarHidden} />
|
||||
* ...
|
||||
* </View>
|
||||
* }
|
||||
* />
|
||||
* </View>
|
||||
* ```
|
||||
* mounted.
|
||||
*
|
||||
* ### Imperative API
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user