How do you perform logging in React native?

Technology CommunityCategory: React NativeHow do you perform logging in React native?
VietMX Staff asked 3 years ago
  • Use console.logconsole.warn etc.
  • Use console.debug("text"); to see the logs inside the terminal.

Steps:

  • Run the application:
react-native run-ios        # For iOS
react-native run-android    # For Android
  • Run the logger:
react-native log-ios        # For iOS
react-native log-android    # For Android