Skip to content

Commit 3126658

Browse files
authored
Merge pull request #36939 from getusha/fix-storybook-crash
[No QA] fix: Storybook stuck loading
2 parents 292605f + 382eebb commit 3126658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__mocks__/@react-native-community/netinfo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import {NetInfoCellularGeneration, NetInfoStateType} from '@react-native-communi
22
import type {addEventListener, configure, fetch, NetInfoState, refresh, useNetInfo} from '@react-native-community/netinfo';
33

44
const defaultState: NetInfoState = {
5-
type: NetInfoStateType.cellular,
5+
type: NetInfoStateType?.cellular,
66
isConnected: true,
77
isInternetReachable: true,
88
details: {
99
isConnectionExpensive: true,
10-
cellularGeneration: NetInfoCellularGeneration['3g'],
10+
cellularGeneration: NetInfoCellularGeneration?.['3g'],
1111
carrier: 'T-Mobile',
1212
},
1313
};

0 commit comments

Comments
 (0)