1

How can I view arbitrary javascript logs with the react-native toolchain? Facebook's documentation states react-native log-android should show them, but I am not seeing anything when I write a trivial log such as in index.android.js:

import React, { Component } from 'react'

// ...

console.log("foo") // first log after imports

Would this show up in the adb logcat logs? This is through an emulated device, and oddly enough I can witness other trivial changes (such as, manipulations in font size), so I know my build system "works", but I can't see the logs for some reason.

Also, note that this is using an Ubuntu GNU/Linux development system, not OSX.

1 Answer 1

5

please run following command in terminal. (where your app directory located)

adb logcat *:S ReactNative:V ReactNativeJS:V
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.