Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

A collection of sample React Native Libraries that will show you how to use the New Architecture (Fabric & TurboModules) step-by-step.

License

Notifications You must be signed in to change notification settings

react-native-community/RNNewArchitectureLibraries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RUN

This run starts from the feat/turbomodule-swift branch. Start from there up to the [TurboModule] Test the swift Turbomodule section. Then, follow the steps below to move your logic to a Swift implementation file.

Table of contents

Steps

  1. Open the calculator/src/NativeCalculator.js file and add the following lines
export interface Spec extends TurboModule {
    // your module methods go here, for example:
    add(a: number, b: number): Promise<number>;

+    // eventful Sqrt
+    eventfulSqrt(a: number): void;

+    addListener: (eventType: string) => void;
+    removeListeners: (count: number) => void;
}

Note: The addListener and removeListeners implementations will be provided by React Native.

About

A collection of sample React Native Libraries that will show you how to use the New Architecture (Fabric & TurboModules) step-by-step.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published