Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akhilsanker opened this issue Jun 7, 2021 · 2 comments

Comments

@akhilsanker
Copy link

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

@akhilsanker akhilsanker changed the title Not working in iOS Not working in iOS, requireNativeComponent( "WheelPicker", WheelPicker ); not found in UIManager Jun 7, 2021
@agurtovoy
Copy link
Member

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
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants