Skip to content

Commit

Permalink
withStoresProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Oct 6, 2020
1 parent 6fe6e4a commit aa49d75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Constants from './utils/constants';
import CounterScreen from './screens/CounterScreen';
import ExpoScreen from './screens/ExpoScreen';

import { withStoreProvider, hydrateStores } from './stores';
import { withStoresProvider, hydrateStores } from './stores';
import { withServicesProvider, initServices } from './services';
import { setOptionsForUseStyles } from './utils/useStyles';

Expand All @@ -22,7 +22,7 @@ Screens.forEach((C, key) => {
key,
() =>
gestureHandlerRootHOC(
withStoreProvider(
withStoresProvider(
withServicesProvider(C))),
() => C,
);
Expand Down
2 changes: 1 addition & 1 deletion src/stores/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const stores = {
// const f_stores = () => stores;
const storeContext = React.createContext(stores);

export const withStoreProvider = (C: React.FC) => (props: any) => {
export const withStoresProvider = (C: React.FC) => (props: any) => {
return (
<storeContext.Provider value={stores}>
<C {...props} />
Expand Down

0 comments on commit aa49d75

Please sign in to comment.