jesster2k10 / react-native-giphy-ui

Cross Platform React Native Wrapper around the Giphy UI SDK for both iOS and Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to set verificationMode within the configure call

leelandclay opened this issue · comments

I'm not able to find a way to set the verification mode when calling the configure function. This step is required to get the production key and must be called within the app. I looked through the code and tried to find it, but was unable.

The information for the verification mode that I found on giphy's site is at: https://developers.giphy.com/docs/sdk#verification

In case anyone else is needing this before it's implemented, I was able to do it by following these steps:

Browse to /node_modules/react-native-giphy-ui/android/src/main/java/com/reactnativegiphyui and open GiphyUiModule.kt
Find the configure method and change it to:

Giphy.configure(reactApplicationContext, apiKey, verificationMode = true)

Then, run your app in Android Studio. The verification code will show up in logcat. It looks like you can use the same production key for both android and ios...I've been going through the process and it doesn't look like it requires a different one for each.

Once you have the verification code, use it in the giphy developer website to get your production key.