gusparis / react-native-month-year-picker

React Native Month Picker component for iOS & Android
MIT License
105 stars 73 forks source link

TypeError: null is not an object (evaluating '_RNMonthPickerDialogModule.default.open') #54

Closed auliakbarh closed 1 year ago

auliakbarh commented 3 years ago

I've an error when using MonthPicker from 'react-native-month-year-picker' (Android devices) I guess it's happens because the auto linking doesn't run automatically. Is there any guide to install dependencies manually on Android and iOS?

Screen Shot 2020-11-30 at 11 58 48
gusparis commented 3 years ago

Hello @auliakbarh! What's your RN version?

auliakbarh commented 3 years ago

Hello @auliakbarh! What's your RN version?

I'm using RN 0.62.2, and using existing the native app (ios & android)

gusparis commented 3 years ago

Weird. That version already has autolinking. Did you build the app? Did you try running a gradle sync from Android Studio? Is this happening to you also on iOS?

gusparis commented 3 years ago

I'll close this due to inactivity.

augustoostapechen commented 3 years ago

I've the same issue.

I've already try to link manually, but don't work as well.

gusparis commented 3 years ago

Hello! Thanks for using the library! I've never tested it on Expo bare workflow. I've always worked on ejected RN projects. Is this an Android only issue? or can it be reproduced on iOS too?

augustoostapechen commented 3 years ago

I can't reproduce the error on iOS, so I don't know if this error happens only in the Android.

gusparis commented 3 years ago

Ok, I'll reopen it. Can you share me your android/settings.gradle and your android/app/build.gradle files?

mixermat99 commented 3 years ago

i have the same issue using Expo client, RN version: 0.63.2

gusparis commented 3 years ago

@mixermat99 the component is not compatible with Expo, at least not with the Managed workflow. Are you using Bare? From Expo documentation page: image

mixermat99 commented 3 years ago

No, i'm using Managed Workflow

gusparis commented 3 years ago

@mixermat99 check my edited comment. I'm sorry, but Expo won't support it.

mixermat99 commented 3 years ago

Ok, thanks very much

gusparis commented 3 years ago

@mixermat99 sorry you can't use it! 😔

mixermat99 commented 3 years ago

nothing, your library for me is the best month/year picker online, is for this reason that i would use that

vksgautam1 commented 3 years ago

we have version of 0.59.4 and have this issue , is there any solution for it. library version-^1.6.4

Rishabhcore7 commented 3 years ago

i'm getting the same crash in 0.59.4, can someone help me please.

gusparis commented 3 years ago

Hey! I was off. I recommend using RN 0.60+, there are some issues with lower versions. Either way, I'll set up a 0.59 env to check Android.

imnotvirus commented 2 years ago

I have the same problem using EXPO