New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-thumbnail-selector

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-thumbnail-selector

A thumbnail selector.

  • 5.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
decreased by-26.09%
Maintainers
0
Weekly downloads
 
Created
Source

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 React from 'react';
import {Animated} from 'react-native';
import ThumbnailSelector from 'react-native-thumbnail-selector';

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

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

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

export default Example;

Keywords

FAQs

Package last updated on 29 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc