Skip to content

appmetrica/varioqub-react-native-plugin

Repository files navigation

@appmetrica/react-native-varioqub

React Native plugin for Varioqub for Android and iOS platforms

Installation

npm install @appmetrica/react-native-varioqub

Usage

import Varioqub from '@appmetrica/react-native-varioqub';

// init varioqub
Varioqub.initVarioqubWithAppMetricaAdapter({
  clientId: '<YOUR_CLIENT_ID>',
});

// fetch config with flags
Varioqub.fetchConfig(
  () => {
    // activate config with flags
    Varioqub.activateConfig();
  },
  () => {
    console.log('Something went wrong');
  },
);

// use flags from config
Varioqub.getString("key", "default_value")