Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native code-gen > Add a C++ only TurboModule example (for Android/iOS/macOS/Windows) #35138

Closed

Commits on Nov 8, 2022

  1. react-native code-gen > Add a C++ only TurboModule example (for Andro…

    …id/iOS/macOS/Windows) (facebook#35138)
    
    Summary:
    Pull Request resolved: facebook#35138
    
    Changelog:
    
    [General][Added] - Add a C++ only TurboModule example (for Android/iOS/macOS/Windows)
    
    react-native@0.69 introduced a new bridging layer to ease integration for pure C++ TurboModules using C++ std:: types directly instead of the lower level jsi:: types:
    https://github.com/facebook/react-native/tree/v0.69.0/ReactCommon/react/bridging
    
    This bridging layer can be used in JSI functions or more conveniently in C++ TurboModules.
    
    Here is a example of an C++ only TurboModule which will work on Android and iOS and macOS/Windows (using microsoft/react-native-macos|windows) only using flow/TypeScript and standard C++ types.
    
    C++ only TurboModules are very handy as they do not require to work with JSI APIs - instead std:: or custom C++ can by used.
    
    Differential Revision: D39011736
    
    fbshipit-source-id: a3091891cc8cec927b0914d6342d2873df953fdb
    christophpurrer authored and facebook-github-bot committed Nov 8, 2022
    Configuration menu
    Copy the full SHA
    a4f286a View commit details
    Browse the repository at this point in the history