DelightfulStudio / react-native-wheel-picker-android

iOS-like DatePicker for Andriod
MIT License
17 stars 16 forks source link

Not working in iOS, requireNativeComponent( "WheelPicker", WheelPicker ); not found in UIManager #11

Open akhilsanker opened 3 years ago

akhilsanker commented 3 years ago

Hi,

Tried this plugin iOS, but getting 'requireNativeComponent( "WheelPicker", WheelPicker ); not found in UI Manager'. Tried forked git 'https://github.com/Cero-Studio/ReactNativeWheelPicker' and found it works in iOS without any error.

Is iOS is limited for this forked?

Thanks

agurtovoy commented 3 years ago

Hey @akhilsanker, yep, this is an Android-only component; our goal was to provide a quality "wheel picker" UX on Android rather than change/expand the native iOS functionality. That said, turning this into a "universal" picker is trivial:

Screen Shot 2021-06-07 at 11 11 05 AM Screen Shot 2021-06-07 at 11 12 24 AM
akhilsanker commented 3 years ago

@agurtovoy , Thanks for the reply. I can't use both plugins, the forked one and this one,in same project.

I need react-native-wheel-picker-android this one for iOS and @delightfulstudio/react-native-wheel-picker-android this one for Android. But now I am unable to use both the plugins at the same time in my project getting the following error:

.../build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:85: error: a type with the same simple name is already defined by the single-type-import of WheelPickerPackage
import com.wheelpicker.WheelPickerPackage;

Any solution to use both the plugins within same project.