Skip to content

How to expose c++ enum class to react native #10624

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

You must be logged in to vote

You would want to expose the enum values as part of a native module's constants. You could specify "CommandDetectionLevel.NONE = 0", "CommandDetectionLevel.LOW = 1", etc.).

See https://microsoft.github.io/react-native-windows/docs/native-modules

Replies: 1 comment

Comment options

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