You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/status-bar.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ If you don't have a navigation header, or your navigation header changes color b
10
10
11
11
This is a simple task when using a stack or drawer. You can simply render the `StatusBar` component, which is exposed by React Native, and set your config.
12
12
13
-
```javascript
13
+
```jsx
14
14
classScreen1extendsReact.Component {
15
15
render() {
16
16
return (
@@ -53,7 +53,7 @@ class Screen2 extends React.Component {

70
70
71
-
```javascript
71
+
```jsx
72
72
exportdefaultcreateDrawerNavigator({
73
73
Screen1: {
74
74
screen: Screen1,
@@ -92,7 +92,7 @@ To fix this we'll have to do two things
92
92
93
93
First, the new `Screen2.js` will no longer use the `StatusBar` component.
94
94
95
-
```javascript
95
+
```jsx
96
96
classScreen2extendsReact.Component {
97
97
render() {
98
98
return (
@@ -116,7 +116,7 @@ class Screen2 extends React.Component {
116
116
117
117
Then, in both `Screen1.js` and `Screen2.js` we'll set up a listener to change the `StatusBar` configuration when that tab `didFocus`. We'll also make sure to remove the listener when the `TabNavigator` has been unmounted.
0 commit comments