File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { View } from "react-native";
5
5
type IndexedObject = { [ key : string ] : any } ;
6
6
7
7
const GlobalStateContext = createContext <
8
- [ globalState : object , setGlobalState : ( PartialState : object ) => void ]
8
+ [ globalState : IndexedObject , setGlobalState : ( PartialState : object ) => void ]
9
9
> ( [ { } , ( ) => null ] ) ;
10
10
11
11
/**
@@ -40,7 +40,7 @@ const GlobalStoreProvider: FunctionComponent<{
40
40
initialState = { } ,
41
41
persistedKeys = [ ] ,
42
42
loadingUI = < View /> ,
43
- storageKey = "GlobalStoreProvider "
43
+ storageKey = "GlobalStateProvider "
44
44
} ) => {
45
45
const [ globalState , updateState ] = useState < IndexedObject > ( { } ) ;
46
46
const [ isLoading , setLoading ] = useState ( true ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-global-store" ,
3
- "version" : " 1.0.3 " ,
3
+ "version" : " 1.0.4 " ,
4
4
"description" : " React Native App Store state holder and persistor" ,
5
5
"main" : " index.tsx" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments