Menu

I replaced six React Native picker libraries with one, and it has zero native code
📰

I replaced six React Native picker libraries with one, and it has zero native code

DEV Community: reactnative·Eliyahu Kriel·about 19 hours ago
#IQGnXFRs
#devtoreactnative#devto#dev#native#react
Reading 0:00
15s threshold

Every React Native app I've worked on ended up with the same pile of packages:

@react-native-community/datetimepicker for dates and times

react-native-calendars because the date picker can't do ranges

a dropdown library, because the native picker can't search

a country picker, then a phone input on top of it

an emoji keyboard for the chat screen

a bottom sheet to put half of these in

Six APIs, six looks, some of them native modules that need a rebuild, and most of them broken or missing on the web.

So I built React Native Pickers : one package with all of them, written in plain JavaScript on React Native's own APIs.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.