Skip to content

View JS logs after bundled and issue with useReducer #10666

Answered by jonthysell
mechanicalhack asked this question in Q&A
Discussion options

You must be logged in to vote

You can specify a native callback to run every time the JS runs console.log. See https://microsoft.github.io/react-native-windows/docs/next/native-api/ReactInstanceSettings#nativelogger

This defaults in Debug to the logging you're seeing, but in Release it does nothing. You can specify your own callback.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@mechanicalhack
Comment options

@mechanicalhack
Comment options

@jonthysell
Comment options

@mechanicalhack
Comment options

Answer selected by chrisglein
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants