-
Notifications
You must be signed in to change notification settings - Fork 25k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
Reading logs with React Native should be super easy, right now it's not. You have to:
- Run
adb logcaton Android - Use Xcode, Nuclide etc. on iOS. See http://stackoverflow.com/questions/30115372/how-to-do-logging-in-react-native
We should have a command 'react-native log' that prints logs for a running Android emulator / iOS simulator or connected device. For that we'll need to detect whether an Android or iOS simulator is running or a device connected (e.g. using adb devices or something similar on iOS). It seems reasonable to:
- Start simple and first add two separate commands:
react-native log-android,react-native log-ios - Later add
react-native logthat detects what kind of devices are connected and calls eitherlog-androidorlog-ios.
The command should be implemented as part of the CLI. To get started, see https://github.com/facebook/react-native/blob/master/local-cli/cliEntry.js
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.