Passing initial state from API call to createStore when react native application boots up
问题 I am having trouble initialising my redux-state when my react-native application boots up. I need to make an api call before the application boots up to retrieve data to hydrate my state. Id like to pass the result of this call to the createStore function in my Provider JSX element. I have read different things about how to do that but none of them seems to work. Here's my root App component : import React, { Component } from 'react'; import { View } from 'react-native'; import { Provider }