Skip to content

web-iou/react-native-picker

Repository files navigation

react-native-picker

npm version npm

A Native Picker with high performance for React Native.

Preview

Android Demo

🚀 Improvements Over Original

This is a fork of beefe/react-native-picker with the following enhancements:

  • Fixed overlay rendering issues - Resolves white screen problems that may occur in renderer
  • Android row height support - Added support for customizing row height on Android platform
  • Better performance - Optimized rendering with overlay
  • Enhanced stability - Fixed various edge cases and crashes

📦 Installation

npm install @see_you/react-native-picker --save

🔗 Linking

React Native 0.60+

No manual linking required - it's automatic!

React Native < 0.60

react-native link @see_you/react-native-picker

📱 Platform Support

Platform Version
iOS 8.0+
Android 4.1+

🎯 Usage

Basic Example

import Picker from "@see_you/react-native-picker";

// Simple data array
let data = [];
for (let i = 0; i < 100; i++) {
  data.push(i);
}

Picker.init({
  pickerData: data,
  selectedValue: [59],
  onPickerConfirm: (data) => {
    console.log("Selected:", data);
  },
  onPickerCancel: (data) => {
    console.log("Cancelled:", data);
  },
  onPickerSelect: (data) => {
    console.log("Selected:", data);
  },
});

Picker.show();

About

A Native Picker with high performance for React Native.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 28