Skip to content

hbarylskyi/react-native-google-image-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package is ported from node-google-image-search. It's using react-native-config instead of dotenv to be usable inside react-native (and is also using es6 instead of old syntax).

Setup

  1. Install react-native-config.

  2. Create a .env file with your CSE id and api key, for example:

CSE_ID=000481220124135128830617:ndojhfef1cq
CSE_API_KEY=AIzaSyBaBZ_fsdfsdfRd36hUSy0PUlqZxfF23sUQ

Usage

import imageSearch from "react-native-google-image-search";


imageSearch("cats", 0, 5).then(images => {
  return images.map(image => console.log(image.link));
});

About

node-google-image-search ported to react-native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published