React Native Asynstorage and TabView

Job ID: 32596364

Budget: ₹600 – ₹1,500 INR

I create React Native project Using Native Cli using Mac OS
1. Tab view npm connot install i had try many way like
npm i react-native-tab-view, npm i @react-navigation/material-top-tabs
2. AsynStorage not working
a. after user sucessfully login i have used
npm i @react-native-async-storage/async-storage
await AsyncStorage.setItem('user_id', user_id)
and get i from spashscreen example
AsyncStorage.getItem("user_id").then((value) => {
this.setState({"user_id": value});
})
.then(res => {
if(user_id===null){
this.props.navigation.navigate('SingnIn')
}
else{
this.props.navigation.navigate('Home')
}
});

but error comming this two thing
Related categories: Mac OS Xcodebuild React Native