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
- Host: GitHub
- URL: https://github.com/newbiebr/react-native-unsplash
- Owner: NewBieBR
- Created: 2020-02-20T00:39:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T07:47:38.000Z (over 2 years ago)
- Last Synced: 2025-03-16T18:34:47.211Z (3 months ago)
- Topics: photo, react-native, typescript, unsplash
- Language: TypeScript
- Homepage:
- Size: 28.2 MB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
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 local4. 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 ;
}
```