title: How to clear AsyncStorage in React-Native?
body: <p>I need help to clear AsyncStorage. Where and how should I clear it? Because when I login with another user I got the data from the previous user. When I login with same user second time the data is alright... I think the problem is somewhere here in Login Screen.</p>
  <p>I try with - <code>AsyncStorage.clear()</code>, but I'm not sure is that correct, and if it is, I'm not sure where should I put it.</p>
  <p>Here is my Login Screen:</p>
  <pre><code>class LoginScreen extends Component {
  
    constructor(){
             super();
             this.state = {
              email: '',
              password: '',
              apiUrl: apiUrl,
              result: false,
             }
         }
  
      _userLogin() {
        
           let email = this.state.email;
           let password = this.state.password;
           
           if (email === '' || password === '') {
                Toast.show({
                 text: 'Please enter Email and Password.',
                 textStyle: {color: '#383838', fontFamily: 'SF UI Display Normal', fontSize: 14, marginLeft: 10},
                 duration: 2000,
                 style: {backgroundColor: '#EBABAA', width: '90%', alignSelf: 'center', borderRadius: 30, marginBottom: 10},
               })
              }
  
           if (email &amp;&amp; password) { 
             fetch(`API URL`, {
               method: &quot;POST&quot;,
               headers: {
                 'Content-Type': 'application/json'
               },
               body: JSON.stringify({
                 email: email,
                 password: password,
               })
              })
             .then((response, email, password) =&gt; {
              if(response.status !== 200) {
                throw new Error('The given data was invalid.')
              }
              return response.json();
              })
             .then((responseData) =&gt; {
               AsyncStorage.clear()
               this.renderResults(responseData)
               console.log(responseData)
               this.props.navigation.navigate('IntroScreen');
             })
             .catch((err) =&gt; {
               console.log(err.message),
               Toast.show({
                 text: 'The given data was invalid.',
                 textStyle: {color: '#383838', fontFamily: 'SF UI Display Normal', fontSize: 14, marginLeft: 10},
                 duration: 2000,
                 style: {backgroundColor: '#EBABAA', width: '90%', alignSelf: 'center', borderRadius: 30, marginBottom: 10},
               })})
           }
         }
  
      componentDidMount () {
        fetch(`API URL`, {
          method: &quot;GET&quot;,
        })
        .then((response) =&gt; response.json())
            .then((responseJson) =&gt; {
              gp.employee(responseJson.data.employee.data);   
            })
            .catch((error) =&gt; {
                console.error(error);
            });
      }
  
         renderResults = (responseData) =&gt; {
             if(responseData){
                  this.setState({
                      result: true
                  })
             }
         }
  
         handleEmail = (text) =&gt; {
               this.setState({ email: text })
         }
  
  
         handlePassword = (text) =&gt; {
               this.setState({ password: text })
         }
  
    render() {
  </code></pre>