Im running into an issue with a React Native module on iOS. I wrote a module in Objective-C and used
RCT_EXPORT_MODULE(@"tracker");
import { NativeModules } from 'react-native';
console.log("Native modules:", NativeModules);
On iOS module are automatically registered.
The bridge does this by querying all classes implementing the
RCTBridgeModule protocol.
If you don't see your module, this means something is missing somewhere.
One possibility is that your ObjC class is not compiled as part of the application target.
In that case open Xcode and check your
{your_module}.m belongs to your app's target.
Example with the
F8Scrolling module from the F8 sample app: