@screeb/react-native
v4.0.2
Published
Continuous Product Discovery
Readme
Continuous Product Discovery, Without the Time Sink.
Screeb is the only Continuous Product Discovery platform that lets you analyse users' behaviour, ask in-app questions, recruit people for interviews and analyse data in a blink with AI.
Installation
This library is published in the NPM registry and can be installed using any compatible package manager.
npm install @screeb/react-native --save
# For Yarn, use the command below.
yarn add @screeb/react-nativeFor iOS, also run:
cd ios && pod installUsage
Basic usage:
import { initSdk, setIdentity } from '@screeb/react-native';
// Initialize Screeb SDK
initSdk("<channel-id>");
// Optional: identify visitor
setIdentity("<user-id>", {
firstname: "<user-firstname>",
lastname: "<user-lastname>",
plan: "<user-plan>",
age: 42,
authenticated: true,
});For working examples, see:
For further information, see our developer documentation.
Run examples
React Native CLI example
npm install
cd examples/example-reactnative/ios
pod install
cd ../../..
npm run android --workspace=example-reactnative
npm run ios --workspace=example-reactnativeExpo example
The Expo project lives in example-expo. It builds a full native binary (Expo Go will not load custom native modules).
npm install
npm run prebuild --workspace=example-expo
npm run ios --workspace=example-expo # or android
# in another terminal, from the repo root
npm run example:expo --workspace=@screeb/react-nativeRe-run prebuild whenever native configuration changes. Use npm run prebuild --workspace=example-expo -- --clean if you need to fully regenerate the iOS/Android projects.
Changelog
Support
For any issues, please contact our support team at [email protected].
Contributing
All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.
License
Released under MIT License.
