![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
react-native-ring-picker
Advanced tools
React Native Ring wheel Picker Navigator with complex animations by dragging
This is the ring-shaped wheel navigator/selector component for react native with smooth native animations and infinite scroll.
This plugin depends on the SVG icons and main ring is an SVG icon as well, so necessary module should be installed along.
Inside the react native project do the following
npm i react-native-ring-picker --save
install the picker elementnpm 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 iconscd 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
These are the props that are supported by the picker.
Name | Type | Default | Description |
---|---|---|---|
girthAngle | number | 120 | segment of icons spread above the ring, defines left and right visible borders to contain icons |
onPress | Function | (iconId) => {} | callback function that is called with clicked icon id or when ring center is clicked with id of the icon snapped to the vertical axis |
iconHideOnTheBackDuration | ms | 250 | delay in ms necessary to complete the animation of icon hiding while it moves beneath the ring to its most left or right position to make infinite scroll |
icons | React.Element, Object, string | [{id: "action_1", title: "action_1"}, "action_2", "action_3", "action_4", "action_5"] | collection of icons to be rendered, can be either react elements, string or objects that will render default icons |
showArrowHint | boolean | true | shows two-sided arrow with hint how to interact with ring, disappears on first picker integration |
style | Object | {} | styles of the main component usually used for picker positioning |
styleIconText | Object | {} | styles extending default icon title's text styles defined inside the picker |
defaultIconColor | rgb, rgba, hex string | undefined | styles for setting default icon's color |
<ReactNativeRingPicker
girthAngle={120}
iconHideOnTheBackDuration={300}
styleIconText={{fontWeight: 'bold'}}
/>
whereas in this example 5 default icons are used from the react-native-ring-picker plugin itself.
<ReactNativeRingPicker
icons={[{id: "custom_id_1", title: "custom title 1"}, <PaymentCard id={"payments"}/>, "action_3", <Search title={"find"} color={"#F88DFF"}/>, "action_5"]}
girthAngle={120}
iconHideOnTheBackDuration={300}
onPress={(iconId) => someExternalIdSelection(iconId)}
styleIconText={{fontWeight: "bold"}}
style={{flex: 0, marginTop: 0}}/>
/>
where as in this example custom icons are sent into the picker. Picker accepts:
<ReactNativeRingPicker
icons={[<PaymentCard id={"payments"} title={"Your payments"}/>, {"id": "default", "title": "Default action"}, <Search title={"find"} color={"#F88DFF"}/>]}
girthAngle={90}
onPress={(iconId) => someExternalIdSelection(iconId)}
showArrowHint={false}
/>
whereas in this example 3 custom icons are used:
FAQs
React Native Ring wheel Picker Navigator with complex animations by dragging
We found that react-native-ring-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.