react-native-thumbnail-selector
Advanced tools
Comparing version
{ | ||
"name": "react-native-thumbnail-selector", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "A thumbnail selector.", | ||
@@ -5,0 +5,0 @@ "main": "ThumbnailSelector.tsx", |
@@ -37,2 +37,4 @@ # react-native-thumbnail-selector | ||
```javascript | ||
import React from 'react'; | ||
import {Animated} from 'react-native'; | ||
import ThumbnailSelector from 'react-native-thumbnail-selector'; | ||
@@ -43,7 +45,7 @@ | ||
caption: 'react-native', | ||
imageSrc: {uri: 'https://reactnative.dev/img/tiny_logo.png'}, | ||
imageSrc: {uri: 'https://reactnative.dev/img/pwa/manifest-icon-512.png'}, | ||
}, | ||
{ | ||
caption: 'Dolore do magna ullamco nisi quis.', | ||
imageSrc: {uri: 'https://reactnative.dev/img/tiny_logo.png'}, | ||
imageSrc: {uri: 'https://reactnative.dev/img/pwa/manifest-icon-512.png'}, | ||
}, | ||
@@ -54,3 +56,3 @@ ]; | ||
// use toggle to show and hide ThumbnailSelector | ||
let toggle = () => new Promise<unknown>(res => res); | ||
let toggle = () => new Promise<Animated.EndResult>(res => res); | ||
@@ -57,0 +59,0 @@ return ( |
16380
0.62%66
3.13%