🚀 Activation methods
Tags: ReactNative
Gleap offers different triggers (activation methods) to show the Gleap widget. You can configure the activation methods within our visual widget configurator.
The current available activation methods are:
- Shake (triggered when shaking the device)
- Screenshot (triggered when a screenshot is taken)
Need a more customized activation method? No worries! You can always open the Gleap widget by code as well.
Set activation methods by code​
Some situations require you to set the activation methods by code. This can be done with the following method.
Gleap.setActivationMethods(['SCREENSHOT', 'SHAKE']);
info
Please note that this method is available since ReactNative SDK version 6.4.2