Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 1.71 KB

File metadata and controls

74 lines (52 loc) · 1.71 KB

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();