Closed bretep closed 1 year ago
Same error after completing the following steps.
Version:
Ran:
npm install -D metro-react-native-babel-preset
Added to webpack:
...
config.resolve.alias.set('react-native', '@open-native/core');
config.module
.rule('rnmodules')
// Add each react-native module that gives errors in webpack build here
// like this:
.include.add(/node_modules(.*[/\\])+react-native-rsa-native/)
.end()
.use('babel-loader')
.before('ts-loader')
.loader('babel-loader')
.options({
babelrc: false,
presets: ['module:metro-react-native-babel-preset'],
});
...
Hey @bretep Try doing the following to see if it fixes the issue:
RNRSA.h
file in node_modules/react-native-rsa-native/ios/
.#import <React/RCTBridgeModule.h>
@interface RNRSA : NSObject <RCTBridgeModule>
@end
Run the app with ns run ios
.
Post here the contents of RNPodspecs.h
Swift modules now work with open-native!
Now I'm getting
Undefined symbols for architecture x86_64:
"_RCTRegisterModule", referenced from:
_initialize_RNRSA in RNRSA-eb438ca2a311d56d55e8cd4fc3e062f5.o
_initialize_RNRSAKeychain in RNRSAKeychain-d66bd83edb08798d1ece26e10d112b88.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't know if this is related or because I'm running M1 and something else is up. :)
Library
Error