Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set verificationMode within the configure call #3

Open
leelandclay opened this issue Jul 10, 2020 · 1 comment
Open

Unable to set verificationMode within the configure call #3

leelandclay opened this issue Jul 10, 2020 · 1 comment

Comments

@leelandclay
Copy link

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

@leelandclay
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant