create-react-native-library
create-react-native-library
is a CLI for scaffolding React Native libraries for iOS and Android. It
simplifies the process of creating, building, testing, and publishing React
Native libraries by providing a CLI that leverages react-native-builder-bob.
Key features:
- Simplicity: Provides a CLI which guides you in the creation of different types of React Native libraries.
- Toolchain: Supports TypeScript, ESLint, Prettier, Lefthook and Release It out of the box.
- Javascript library: Supports for plain Javascript libraries supported by Expo.
- Native view and native module: Supports the creation of components with native view, allowing the leverage of native UI counterparts on specific platforms. Supports native module to expose functionality implemented in native code, offering a means to access device-specific features (camera, keystore, accelerometer, ecc.) or implement performance-critical tasks more efficiently through native code integration.
- Turbo module and Fabric view: Experimental support for Turbo module and Fabric view which allows for more efficient communication between native and JavaScript code by using JSI instead of a bridge which uses serialization via JSON like native modules.
- Multi-language support: Supports the creation of libraries written in Swift, Kotlin, Java, Objective-C and C++.
Use cases
- Creation of React Native libraries for iOS and Android which use device-specific features like interacting with the keystore on Android or the keychain on iOS.
- Creation of React Native libraries for iOS and Android which implement performance-critical tasks more efficiently through native code integration, like cryptography operations.
- Creation of React Native libraries for iOS and Android which leverage native UI counterparts on specific platforms, like a native map view or a native video player.