File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 3434## Usage
3535
3636``` javascript
37+ import React from ' react' ;
38+ import {Animated } from ' react-native' ;
3739import ThumbnailSelector from ' react-native-thumbnail-selector' ;
3840
3941const thumbnails = [
4042 {
4143 caption: ' react-native' ,
42- imageSrc: {uri: ' https://reactnative.dev/img/tiny_logo .png' },
44+ imageSrc: {uri: ' https://reactnative.dev/img/pwa/manifest-icon-512 .png' },
4345 },
4446 {
4547 caption: ' Dolore do magna ullamco nisi quis.' ,
46- imageSrc: {uri: ' https://reactnative.dev/img/tiny_logo .png' },
48+ imageSrc: {uri: ' https://reactnative.dev/img/pwa/manifest-icon-512 .png' },
4749 },
4850];
4951
5052function Example () {
5153 // use toggle to show and hide ThumbnailSelector
52- let toggle = () => new Promise < unknown > (res => res);
54+ let toggle = () => new Promise < Animated . EndResult > (res => res);
5355
5456 return (
5557 < ThumbnailSelector
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import { Animated } from 'react-native' ;
23import ThumbnailSelector from 'react-native-thumbnail-selector' ;
34
45const thumbnails = [
56 {
67 caption : 'react-native' ,
7- imageSrc : { uri : 'https://reactnative.dev/img/tiny_logo .png' } ,
8+ imageSrc : { uri : 'https://reactnative.dev/img/pwa/manifest-icon-512 .png' } ,
89 } ,
910 {
1011 caption : 'Dolore do magna ullamco nisi quis.' ,
11- imageSrc : { uri : 'https://reactnative.dev/img/tiny_logo .png' } ,
12+ imageSrc : { uri : 'https://reactnative.dev/img/pwa/manifest-icon-512 .png' } ,
1213 } ,
1314] ;
1415
1516function Example ( ) : React . JSX . Element {
1617 // use toggle to show and hide ThumbnailSelector
1718 // eslint-disable-next-line @typescript-eslint/no-unused-vars
18- let toggle = ( ) => new Promise < unknown > ( res => res ) ;
19+ let toggle = ( ) => new Promise < Animated . EndResult > ( res => res ) ;
1920
2021 return (
2122 < ThumbnailSelector
Original file line number Diff line number Diff line change 1818 "dependencies" : {
1919 "react" : " 18.3.1" ,
2020 "react-native" : " 0.76.2" ,
21- "react-native-thumbnail-selector" : " 5.1 .0"
21+ "react-native-thumbnail-selector" : " ^5.2 .0"
2222 },
2323 "devDependencies" : {
2424 "@babel/core" : " ^7.25.2" ,
Original file line number Diff line number Diff line change @@ -8284,10 +8284,10 @@ __metadata:
82848284 languageName : node
82858285 linkType : hard
82868286
8287- " react-native-thumbnail-selector@npm:5.1 .0 " :
8288- version : 5.1 .0
8289- resolution : " react-native-thumbnail-selector@npm:5.1 .0"
8290- checksum : 10c0/5fe6c25d67c309e4927087e5bddd9a346d675e6ce790e2f617dcaa0593409e41b2bfec1ff91e27c2e9f80d6bdcccbf1a42fd6a039446951a5d0740abc77df9a2
8287+ " react-native-thumbnail-selector@npm:^5.2 .0 " :
8288+ version : 5.2 .0
8289+ resolution : " react-native-thumbnail-selector@npm:5.2 .0"
8290+ checksum : 10c0/fb57042b677707d5fe2170fd168dc1b2a782b7f4680040e8ac9f02d36e2891950819845b2f56f7b6cd6af29289865fa57258537d0149269b0460c81ae7c052cb
82918291 languageName : node
82928292 linkType : hard
82938293
@@ -9368,7 +9368,7 @@ __metadata:
93689368 prettier : " npm:3.3.3"
93699369 react : " npm:18.3.1"
93709370 react-native : " npm:0.76.2"
9371- react-native-thumbnail-selector : " npm:5.1 .0"
9371+ react-native-thumbnail-selector : " npm:^5.2 .0"
93729372 react-test-renderer : " npm:18.3.1"
93739373 typescript : " npm:5.6.3"
93749374 languageName : unknown
You can’t perform that action at this time.
0 commit comments