You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new react native project with react-native init NewProject
Add a console print to index.ios.js and index.android.js in the render method, e.g.
...
exportdefaultclassNewProjectextendsComponent{render(){console.log("This should be printed in console!");return(<Viewstyle={styles.container}><Textstyle={styles.welcome}>
Welcome to React Native!
</Text><Textstyle={styles.instructions}>
To get started, edit index.ios.js
</Text><Textstyle={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Cmd+D or shake for dev menu
</Text></View>);}}...
Run react-native run-ios from project root
Enable Remote Debugging
Open the console in Chrome
Refresh app and nothing gets printed
Expected Behavior
In step 6 the text This should be printed in console! should have been printed to Chrome console
Actual Behavior
Nothing gets printed to console.
I think the issue may be related to the Chrome release since it was after an upgrade it stopped working.
Is this a bug report?
yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
:react-native-cli: 2.0.1
react-native: 0.47.1
node -v
:v7.10.0
npm -v
:4.2.0
yarn --version
:0.27.5
Then, specify:
macOS 10.12.6
Chrome 60.0.3112.90
Steps to Reproduce
(Write your steps here:)
react-native init NewProject
react-native run-ios
from project rootExpected Behavior
In step 6 the text
This should be printed in console!
should have been printed to Chrome consoleActual Behavior
Nothing gets printed to console.
I think the issue may be related to the Chrome release since it was after an upgrade it stopped working.
Reproducible Demo
https://github.com/andidev/react-native-console-log-bug-example-project
The text was updated successfully, but these errors were encountered: