Giphy / giphy-react-native-sdk

GIPHY React Native SDK
https://developers.giphy.com
Apache License 2.0
68 stars 25 forks source link

Set rating level when using GiphyContent.search #58

Closed chaaya closed 2 years ago

chaaya commented 2 years ago

Duplicates

Latest version

Summary 💡

Would be great to be able to set the rating level when using GiphyContent.search. This works with the Web SDK.

Motivation 🔦

We are building an cross platform app for android, ios and web. We have built our custom Giphy experience by using the Search API in combination with GiphyGridView for native and Grid for web.

One requirement we are having in our app is that we need to set the rating to ensure that non disturbing gifs are shown to the user due to the reason that it is a business/enterprise app.

As I said earlier, this works perfectly in web but it is missing in the native sdk.

pshoniuk commented 2 years ago

Hi @chaaya, thanks for reaching out. This is a good point. We will add this feature in an upcoming release. When it happens, I'll update the status here.

pshoniuk commented 2 years ago

In v1.6.0, we added the rating prop to all Giphy Content methods, which allows you to specify a rating (read more about the new API).