p-janik / react-native-launch-darkly Goto Github PK
View Code? Open in Web Editor NEWReact native wrapper for native Launch Darkly SDKs
React native wrapper for native Launch Darkly SDKs
I receive the error above when trying to build my project with the LD react-native SDK. After a brief search, it appears that the solution is to change the ordering of import checking for RCTBridgeModule
. Instead of:
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"
#else
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
#endif
it should be:
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#import <React/RCTImageLoader.h>
#else
#import "RCTBridgeModule.h"
#import "RCTImageLoader.h"
#endif
For example, see this same issue on RN image picker: ivpusic/react-native-image-crop-picker#436
React Native has removed createJSModules
from ReactPackage
so it should be removed.
error: method does not override or implement a method from a supertype
@Override
^
1 error
:react-native-launch-darkly:compileDebugJavaWithJavac FAILED
Hey @p-janik !
First of all, thank you for creating this package, I'm a new LD user.
I have a quick question.
I noticed that the variation functions require a callback
parameter but, by looking at the LD SDK Docs and at the source code, their native implementations seem to be synchronous calls (I guess because the real LD fetch for the features is done in the init
method?)
Am I missing something?
Thank you!
This happens every time I try to run react-native run-ios. I have attempted to follow both the semi automatic process and the manual process.
I am on RN 0.46
Any suggestions would be very welcome! Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.