Skip to content

Commit

Permalink
RN: Cleanup Comment Reference to Navigator (#44542)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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
  • Loading branch information
yungsters authored and facebook-github-bot committed May 13, 2024
1 parent cdc3b9c commit 651c1d2
Showing 1 changed file with 1 addition and 21 deletions.
Expand Up @@ -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
*
Expand Down

0 comments on commit 651c1d2

Please sign in to comment.