- Notifications
You must be signed in to change notification settings - Fork2
License
splitio/react-native-client
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via feature flags to manage your complete customer experience.
The React Native SDK is a library for React Native applications. The library was build with native modules to support streaming in Android and iOS, and therefore it requires linking the native dependency in order to use streaming. For Expo applications, streaming is not supported by default but a polyfill can be used instead. Check ourpublic documentation for installation details.
Below is a simple App.jsx example that describes the instantiation and most basic usage of our SDK:
// Import the SDKimport{SplitFactory}from'@splitsoftware/splitio-react-native';// Instantiate the SDKvarfactory=SplitFactory({core:{authorizationKey:'YOUR_SDK_KEY',key:'CUSTOMER_ID'}});// Set a callback to listen for the SDK_READY event, to make sure the SDK is properly loaded before asking for a treatmentclient.on(client.Event.SDK_READY,function(){vartreatment=client.getTreatment('FEATURE_FLAG_NAME');if(treatment=='on'){// insert code here for on treatment}elseif(treatment=='off'){// insert code here for off treatment}else{// insert your control treatment code here}});
Please refer toReact Native SDK to learn about all the functionality provided by our SDK as well as specifics for configuration options available for tailoring it to your current application setup.
The Split team monitors all issues submitted to thisissue tracker. We encourage you to use this issue tracker to submit any bug reports, feedback, and feature enhancements. We'll do our best to respond in a timely manner.
Please seeContributors Guide to find all you need to submit a Pull Request (PR).
Licensed under the Apache License, Version 2.0. See:Apache License.
Split is the leading Feature Delivery Platform for engineering teams that want to confidently deploy features as fast as they can develop them. Split’s fine-grained management, real-time monitoring, and data-driven experimentation ensure that new features will improve the customer experience without breaking or degrading performance. Companies like Twilio, Salesforce, GoDaddy and WePay trust Split to power their feature delivery.
To learn more about Split, contacthello@split.io, or get started with feature flags for free athttps://www.split.io/signup.
Split has built and maintains SDKs for:
- .NETGithubDocs
- AndroidGithubDocs
- AngularGithubDocs
- FlutterGithubDocs
- GOGithubDocs
- iOSGithubDocs
- JavaGithubDocs
- JavaScriptGithubDocs
- JavaScript for BrowserGithubDocs
- Node.jsGithubDocs
- PHPGithubDocs
- PHP thin-clientGithubDocs
- PythonGithubDocs
- ReactGithubDocs
- React NativeGithubDocs
- ReduxGithubDocs
- RubyGithubDocs
For a comprehensive list of open source projects visit ourGithub page.
Learn more about Split:
Visitsplit.io/product for an overview of Split, or visit our documentation athelp.split.io for more detailed information.
About
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.