talknagish / react-native-turbo-starter Goto Github PK
View Code? Open in Web Editor NEWReact 0.68+ Turbo Module starter using codegen with typescript for Objective-C and Java/Kotlin with C++ shared library. ๐๐๐
License: MIT License
React 0.68+ Turbo Module starter using codegen with typescript for Objective-C and Java/Kotlin with C++ shared library. ๐๐๐
License: MIT License
I think it's still important to support NativeModules
since there is still a lot of apps that haven't migrated yet to the new architecture, so why not make this template backwards compatible?
@yaela251 let's add a section in the readme to let people know we are hiring at Nagish!
Please create react-native-fabric-starter as well
Referencing an issue for react native core team
hello, with ios it works perfect, but with android it doesn't, the app closes and i get this error: 2022-04-29 14:50:50.271 28083-28131/com.example.reactnativeturbostarter E/ReactNativeJS: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'TurboStarter' could not be found. Verify that a module by this name is registered in the native binary., js engine: hermes
This my system information:
System:
OS: macOS 12.3.1
CPU: (4) x64 Intel(R) Core(TM) i7-5650U CPU @ 2.20GHz
Memory: 600.11 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 17.8.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.5.5 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8309675
Xcode: 13.3/13E113 - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.68.1 => 0.68.1
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Originally posted by @direstrepo24 in #27 (comment)
=> Android
faced some issues if trying to add an additional library.
can you help me with this?
similar to react-native-builder-bob we want to be able to generate a clean clone with a different name from the project
Would it be possible to extend this example with codegen that directly invokes c++ methods from JS? Not sure if that's already possible.
We've created a JSI library in c++ with a minimal obj-c/java boilerplate where methods are implemented in c++ directly (no need to expose it in obj-c/java) but it isn't set up to work with codegen yet (manual JSI setup).
See here for the library: https://github.com/animo/react-native-bbs-signatures
I understand that it's pretty impossible to call call C++ from Swift, but Swift could call ObjC methods.
In this article there is an example on how to use ObjC to bridge C++ to Swift and might be a good start to make this library support it too
https://anuragajwani.medium.com/how-to-consume-c-code-in-swift-b4d64a04e989
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.