How to do logging in React Native?

前端 未结 30 3558
不思量自难忘°
不思量自难忘° 2020-11-30 17:08

How can I log a variable in React Native, like using console.log when developing for web?

30条回答
  •  悲哀的现实
    2020-11-30 17:30

    1. Put console.log("My log text") in your code
    2. go to your command Line tools
    3. position oneself in its development folder

    In Android:

    • write this command : React-native log-android

    In IOS:

    • write this command : React-native log-ios

提交回复
热议问题