Giter Club home page Giter Club logo

react-native-gif-search's People

Contributors

anthlasserre avatar devautor avatar harshal2030 avatar papadi avatar thanasis1101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-gif-search's Issues

Option to select GIPHY stickers

Is there are way to use giphyApiProps to select stickers in the search results? It looks like gifs are hardcoded into the base url here GIPHY_BASE_URL = 'https://api.giphy.com/v1/gifs/' in line 18 of https://github.com/Thanasis1101/react-native-gif-search/blob/master/src/GifSearch.js

If we could remove gifs from the GIPHY_BASE_URL = 'https://api.giphy.com/v1/' and then add it as a props with a default set to /gifs that would be great. It looks like we would have to adjust fetchGiphyGifs (line 212) to make it work but I'm not sure how.

fetchGiphyGifs = (endpoint) => {
      var limit = Math.min(this.gifsToLoad, this.maxGifsToLoad - this.state.offset)
      if (this.provider == providers.ALL) { 
          limit = Math.floor(limit/2)
      }
    
      if (endpoint == endpoints.TRENDING) {

          return Requests.fetch("GET", GIPHY_BASE_URL + "trending", {
              "api_key": this.giphyApiKey,
              "limit": limit,
              "rating": "pg",
              "offset": this.state.offset,
              ...this.props.giphyApiProps,
          })

      } else if (endpoint == endpoints.SEARCH) {

          return Requests.fetch("GET", GIPHY_BASE_URL + "search", {
              "api_key": this.giphyApiKey,
              "q": this.state.search_term,
              "limit": limit,
              "rating": "pg",
              "offset": this.state.offset,
              ...this.props.giphyApiProps,
          })

      }
  }

How to refresh gifs or empty the searchText?

Hi, thanks for the awesome package.

Is there any exposed method that can be used to clear the search input from outside the component? The search bar still remains populated, when I can toggle the 'visible' prop.

bug in provider option

image

the props.provider here will always fail at the inner if condition because "GIPHY !== giphy" so it will always be "all"

Animation aren't playing

I added

    implementation 'com.facebook.fresco:fresco:2.0.0'
    implementation 'com.facebook.fresco:animated-gif:2.0.0'

Did ./gradlew clean and did react-native run-android? Still not working.
Also uninstalled the app also did yarn start --reset-cache still not hope?

Tenor Api key not working

Hi! I can't get my tenor api key to work with gif search. I got the key from my google console and it's still not working. I feel like I'm missing something big but idk what. I'm pretty stuck so any help is appreciated! ๐Ÿ˜ญ

adjust sizing of scroll bar

Great libary, v helpfu! Is there anyway we can adjust the size of the scroll bar? I'd like for it to be bigger. Thanks! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.