An open API service indexing awesome lists of open source software.

https://github.com/newbiebr/react-native-unsplash

Online photos gallery search using Unplash
https://github.com/newbiebr/react-native-unsplash

photo react-native typescript unsplash

Last synced: about 2 months ago
JSON representation

Online photos gallery search using Unplash

Awesome Lists containing this project

README

        

# react-native-unsplash

Online photos gallery search using Unplash

## Installation

1. [Register](https://unsplash.com/developers) you developer account for Unsplash API

2. [Create](https://unsplash.com/oauth/applications) a new app on Unsplash

3. Go to the **Keys** section of your app's page and copy your keys into a new file.
```typescript
const UnsplashKeys = {
accessKey: '...',
secretKey: '...',
};

export default UnsplashKeys;
```
> Remeber to keep this file in local

4. Install this package
```bash
yarn add react-native-unsplash
```

## Basic Usage

```tsx
import UnsplashSearch, { UnsplashPhoto } from 'react-native-unsplash';

onOnlinePhotoSelect(photo: UnsplashPhoto) {
console.log(photo.urls.regular)
}

render() {
return ;
}
```