rn-ab-hoc
Poor intrusive way to make A/B Testing by using an HoC instead of components.
Usage
Installation
$ npm install --save rn-ab-hoc
Component
The previous code defines :
- An experiment name
- A list of different variants with their names and associated components
Using a random variant
This will load one of the three previous components (variants) defined using a randomize function
Forcing a variant
This will force a specific variant (maybe sent by your backend) to be used inside the app.
Note that the forced variant takes over the random one. If you set a variant by forcing it, the previous random one will be erased and replaced by the forced one. Inverse is not true.
Which variant am I using ?
This will print FlatList
. It also work with random variants.