TronNatthakorn / react-native-wheel-pick

Apache License 2.0
183 stars 86 forks source link

Incompability with the new version of react native date picker #41

Open AlirezaHadjar opened 1 year ago

AlirezaHadjar commented 1 year ago

If I update the @react-native-community/datetimepicker to version >7.0.0, I face a runtime error on Android. Everything is fine with version 6.7.5

Native module RNDatePicker tried to override RNDatePicker Check the getPackages() method in MainApplication.java, it might be that module is being created twice. If this was your intention, set canOverrideExistingModule=true. This error may also be present if the package is present only once in getPackages but is also automatically added later during build time by autolinking. Try removing the existing entry and rebuild.

ahmad0303 commented 1 year ago

@AlirezaHadjar Try to use react-native-wheel-pick@1.2.0 it works on the latest version of React Native.