RE

React Native Nitro Modules

react-native-nitro-modules

Fast, type-safe native modules for React Native with statically compiled JSI bindings.

React Native Libraries
react-native
nitro
ios
android
visionOS
tvOS
macOS
cpp
framework
react
Stars
1.9k
Weekly
1.9M
Open issues
186
Bundle
~25 kB

Installation

npm install react-native-nitro-modules

Code example

import { View, Text, StyleSheet } from "react-native";
import { NitroModules } from "react-native-nitro-modules";

export function Example() {
  return (
    <View style={styles.box}>
      <Text style={styles.title}>NitroModules</Text>
      <NitroModules />
    </View>
  );
}

const styles = StyleSheet.create({
  box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 12 },
  title: { fontSize: 18, fontWeight: "600" },
});

Pros & cons

Pros

  • Actively maintained by Marc Rousavy
  • 1.9M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • 186 open issues on GitHub

FAQs

Alternatives & similar libraries