This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
Releases: artemyarulin/react-native-eval
Releases · artemyarulin/react-native-eval
Cocoapods supported
Now installation process involves CocoaPods which makes integration of this library really simple
Async functions supported
Now you can call async functions from your JS:
[RNMEvaluator callAsyncFunction:bridge
name:@"(function(a,b,cb) { setTimeout(function() { cb(Math.pow(a,b)) },0) })"
args:@[@2,@2]
cb:^(NSString *error, id returnValue) {
if (error)
NSLog(@"Error occured: %@", error);
else
NSLog(@"Function returned: %@", returnValue);
}]
Breaking: [RNMEvaluator callFunction]
renamed to [RNMEvaluator callSyncFunction]
Bump release
Just to keep updated with react-native version.
Actually from now on there would be no need to update this package as I removed dependency on a specific version of react-native
Fixes npm package
v.0.0.6 contained test folder with whole react-native folder which completely messes up everything
Use NSString for errors rather than NSError
react-native from v.0.7.0 doesn't know how to bridge Error to NSError, so let's use strings then
Make lib compatible with react-native =>0.0.7
0.0.5 Update lib to be compatable with react-native >=v.0.7.0
Fixed npm package dependency
0.0.4 package peer-dependency replaced with dependency
Fixed version
Fixed JS, so that now it automatically get included by React-Native
Fixed missing target for XCode project
0.0.2 Update to v.0.0.2
First release
callFunctionSync implemented