Last active
May 17, 2019 01:48
-
-
Save vshkl/ab903c8ab7186c008b31158bbfff213a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const registerScreens = ({ store, persistor }, Provider) => { | |
| componentsWithRedux.forEach(({ name, component }) => | |
| Navigation.registerComponent( | |
| name, | |
| () => props => ( | |
| <Provider store={store}> | |
| <PersistGate loading={null} persistor={persistor}> | |
| {React.createElement(component(), props)} | |
| </PersistGate> | |
| </Provider> | |
| ), | |
| component, | |
| ) | |
| ) | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment