5.1.0 • Published 9 months ago

react-native-thumbnail-selector v5.1.0

Weekly downloads
11
License
MIT
Repository
github
Last release
9 months ago

react-native-thumbnail-selector

Platform npm npm License CI

Table of contents

Installation

yarnyarn add react-native-thumbnail-selector
npmnpm install react-native-thumbnail-selector --save

Support

react versionreact-native versionpackage versionreason
v16.8.0v0.61.0>=3.0.0React hooks and usage of useWindowDimensions

Demo

screenshot

Usage

import ThumbnailSelector from 'react-native-thumbnail-selector';

const thumbnails = [
  {
    caption: 'react-native',
    imageSrc: {uri: 'https://reactnative.dev/img/tiny_logo.png'},
  },
  {
    caption: 'Dolore do magna ullamco nisi quis.',
    imageSrc: {uri: 'https://reactnative.dev/img/tiny_logo.png'},
  },
];

function Example() {
  // use toggle to show and hide ThumbnailSelector
  let toggle = () => new Promise<unknown>(res => res);

  return (
    <ThumbnailSelector
      thumbnails={thumbnails}
      toggle={func => (toggle = func)}
    />
  );
}

export default Example;
5.1.0

9 months ago

5.0.1

1 year ago

5.0.0

1 year ago

4.2.0

1 year ago

4.1.0

2 years ago

4.0.0

2 years ago

3.0.0

3 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago