🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-native-ring-picker

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-ring-picker

React Native Ring wheel Picker Navigator with complex animations by dragging

1.2.1
Source
npm
Version published
Maintainers
1
Created
Source

react-native-ring-picker

This is the ring-shaped wheel navigator/selector component for react native

Dependencies

Inside the react native project do the following

  • npm i react-native-ring-picker --save install the picker element
  • npm i react-native-svg --save install the direct dependency of react native svg, since default icon is SVG and picker accepts the collection of SVG icons
  • cd ios got to iOS project folder
    • pod install install native packages inside iOS project folder necessary for SVG work like RNSVG from ../node_modules/react-native-svg

Basic default UI

<ReactNativeRingPicker
    girthAngle={120}
    iconHideOnTheBackDuration={300}
    styleIconText={{color: '#000', fontWeight: 'bold'}}
/>

Basic Preview

Configuration sample

<ReactNativeRingPicker
    icons={[<HomeIcon/>, <MapIcon title={"route"}/>, <OtherIcon id={"icon_id"} title={"other title"}/>, {id: "action_4", title: "action_4"}, "action_5"]}
    girthAngle={120}
    iconHideOnTheBackDuration={300}
    onPress={(iconId) => {}}
    showArrowHint={true}
    styleIconText={{color: '#000', fontWeight: 'bold'}}
    style={{flex: 0, marginTop: 0}}
/>

Keywords

react

FAQs

Package last updated on 11 Feb 2020

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