title: Expo React Native App + Redux-Persist: AsyncStorage Problem
body: <p>I just started a new <em>Managed</em> Expo React Native project (Expo <em>SDK 35</em>, React Native <em>0.5.9</em>) using <code>redux-persist@6.0.0</code> but even a fresh expo project with redux/redux-persist is currently throwing the error below.</p>
  
  <hr>
  
  <p><strong>Using <code>AsyncStorage</code> from <code>react-native</code></strong>, </p>
  
  <p>we get the error:</p>
  
  <blockquote>
    <p>redux-persist: config.storage is required. Try using one of the provided storage engines <code>import storage from 'redux-persist/lib/storage'</code></p>
  </blockquote>
  
  <hr>
  
  <p><strong>Using <code>AsyncStorage</code> from <code>@react-native-community/async-storage</code></strong>,</p>
  
  <p>we get the error:</p>
  
  <blockquote>
    <p>[@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.</p>
  </blockquote>
  
  <hr>
  
  <p><strong>Using <code>storage</code> from <code>redux-persist/lib/storage</code></strong>,</p>
  
  <p>we get the error:</p>
  
  <blockquote>
    <p>console.error: "redux-persist failed to create sync storage. falling back to noop storage."</p>
  </blockquote>
  
  <hr>
  
  <p><strong>Question:</strong> How do we solve this problem without ejecting? Thanks!</p>
  
  <hr>
  
  <p><strong><code>redux-persist</code> Code</strong></p>
  
  <p><em>Note: Previous attempts have been commented out:</em></p>
  
  <pre><code>// Chose 1 of the 3 storages
  // import { AsyncStorage } from "react-native";
  // import AsyncStorage from '@react-native-community/async-storage';
  import storage from 'redux-persist/lib/storage'
  
  import { createMigrate, persistStore, persistReducer } from "redux-persist";
  import reducer from "../reducers";
  
  const persistConfig = {
      key: 'root',
      version: 0,
      storage,    // 'redux-persist/lib/storage'
  }
  
  // const persistConfig = {
  //   key: 'root',
  //   version: 0,
  //   AsyncStorage,    // '@react-native-community/async-storage'
  // }
  
  const persistedReducer = persistReducer(persistConfig, reducer);
  </code></pre>