react-native-zen-engine

0.1.3 • Public • Published

react-native-zen-engine

react-native-zen-engine

Installation

npm install react-native-zen-engine

Usage

import * as ZenEngine from 'react-native-zen-engine';

const engineId = ZenEngine.engineCreate();
const decisionId = ZenEngine.decisionCreate(engineId, sampleDecision);
const evalauation = ZenEngine.evaluationCreate(decisionId, sampleContext);

ZenEngine.decisionFree(decisionId);
ZenEngine.engineFree(engineId);

Build

yarn
cd zenffi

// android
export PATH="~/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin:$PATH"
make android
cd example
npm run android

// iOS
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"

make ios
cd example/ios
pod install
cd example
npm run ios

License

MIT

Package Sidebar

Install

npm i react-native-zen-engine

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

95.7 MB

Total Files

80

Last publish

Collaborators

  • azimgd