title: Possible Unhandled Promise Rejection (id: 0): TypeError: adapter is not a function. (In 'adapter(config)', 'adapter' is undefined)?
body: <p>when i request login api the error is:</p>
  <p>Possible Unhandled Promise Rejection (id: 0):
  TypeError: adapter is not a function. (In 'adapter(config)', 'adapter' is undefined)
  dispatchRequest@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:126225:19
  tryCallOne@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:27056:16
  <a href="http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:27157:27" rel="nofollow noreferrer">http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:27157:27</a>
  _callTimer@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:30596:17
  _callImmediatesPass@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:30635:17
  callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:30852:33
  __callImmediates@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:2736:35
  <a href="http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:2522:34" rel="nofollow noreferrer">http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:2522:34</a>
  __guard@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:2719:15
  flushedQueue@http://10.0.2.2:8081/index.bundle?platform=android&amp;dev=true&amp;minify=false:2521:21
  flushedQueue@[native code]
  callFunctionReturnFlushedQueue@[native code]</p>
  <p>running environment:
  react-native@63
  axios</p>
  <p>axios config:</p>
  <pre><code>import axios from 'axios';
  import {getAccessToken} from './util'
  
  const service = axios.create({
      baseURL: '/',
      timeout: 6000
  })
  var token;
  
  
  service.interceptors.request.use(config =&gt; {
      token = getAccessToken()
      if (config.headers['Content-Type']) {
          console.log(config.headers['Content-Type'])
      } else {
          config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
      }
      config.headers['Authorization'] = `Bearer ${token}`
      return config
  }, error =&gt; {
      return Promise.reject(error)
  })
  
  service.interceptors.response.use(response =&gt; {
      return response.data
  }, error =&gt; {
      return Promise.reject(error)
  })
  
  export {service as axios}
  </code></pre>
  <p>request login:</p>
  <pre><code>const {code, message, data} = await login({phone, password})
  setLoading(false)
  if (code === 1) {
    saveAccessToken(data.access_token)
    ToastAndroid.showWithGravity(
      message,
      ToastAndroid.SHORT,
      ToastAndroid.CENTER
    )
    getInfo(data.access_token)
    navigation.navigate('Home');
  } else {
    setErrortext(message)
    return
  }
  </code></pre>
  <p>storage example:</p>
  <pre><code>  const saveAccessToken = async (accessToken) =&gt; {
        try {
            await AsyncStorage.setItem('access_token', accessToken)
        } catch (error) {
            return error
        }
    }
  </code></pre>
  <p>error show:
  <img src="https://img.os4team.cn/react-native-axios-adpater.gif" alt="error-img" /></p>
  <p>when i not debugger mode and get this error, if is debugger mode running ok. i don't know where the error? please help me, thanks!</p>