How can I log a variable in React Native, like using console.log when developing for web?
You can do this in 2 methods
1> by using warn
console.warn("somthing " +this.state.Some_Sates_of_variables);
2> By using Alert This is not good each times if it reaches alert then each time pop will be opened so if doing looping means not preferable to use this
Import the {Alert} from 'react-native'
// use this alert
Alert.alert("somthing " +this.state.Some_Sates_of_variables);