Skip to content

Commit d8e9a78

Browse files
TypeError: undefined is not an object (evaluating 'this.styles.topContainer') (#1716)
* fix typo react-native-gesutre-handler -> react-native-gesture-handler * generateStyles is not called yet so it caused npe `this.styles.topContainer` on line 112.
1 parent d499000 commit d8e9a78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/connectionStatusBar/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ class ConnectionStatusBar extends PureComponent<ConnectionStatusBarProps, Connec
3535

3636
constructor(props: ConnectionStatusBarProps) {
3737
super(props);
38+
39+
this.generateStyles();
40+
3841
this.onConnectionChange = this.onConnectionChange.bind(this);
3942

4043
this.state = {

0 commit comments

Comments
 (0)