Skip to content

How do I write a JSI-based native module? #13886

Answered by vmoroz
shirakaba asked this question in Q&A
Discussion options

You must be logged in to vote

Please check this test instead: https://github.com/microsoft/react-native-windows/blob/main/vnext/Microsoft.ReactNative.IntegrationTests/JsiTurboModuleTests.cpp
It is an example how to apply @acoates-ms suggestion.

The code in https://github.com/microsoft/react-native-windows/blob/main/vnext/Microsoft.ReactNative.IntegrationTests/ExecuteJsiTests.cpp shows how to use JSI in context of attributed Turbo Modules (they are designed after the Java and Objective-C Turbo Modules), not how to use the JSI Turbo Modules.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@shirakaba
Comment options

@shirakaba
Comment options

@shirakaba
Comment options

Comment options

You must be logged in to vote
1 reply
@shirakaba
Comment options

Answer selected by chrisglein
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