cooperka / react-native-snackbar

:candy: Material Design "Snackbar" component for Android and iOS.
Other
815 stars 150 forks source link

Property 'textLabel' not found on object of type 'RNSnackBarView *'; #200

Closed hetansh-Tatvasoft closed 1 year ago

hetansh-Tatvasoft commented 1 year ago

Using package version - 2.7.0, RN- 0.71.6

getting below issue while building for iOS

error message:- _

  1. Property 'textLabel' not found on object of type 'RNSnackBarView *'; did you mean to access instance variable 'textLabel'?
  2. _Property 'actionButton' not found on object of type 'RNSnackBarView *'; did you mean to access instance variable 'actionButton'?

Screenshot 2023-05-10 at 4 39 20 PM

replacing

self.textLabel.alpha with textLabel.alpha solves the issue and built successfully similarly for the replaced self.actionButton.alpha with actionButton.alpha.

tyler-coleman commented 1 year ago

Oof

hansa0712004212 commented 1 year ago

I'm getting the same error for iOS

cooperka commented 1 year ago

i believe this broke in v2.7.0; i've just published v2.7.1 with a fix that should hopefully resolve this. please upgrade and let me know.

edit: i had originally also published a fix in v2.6.1, but that is now reverted in v2.6.2 because that release was unaffected.

jbagaresgaray commented 1 year ago

@cooperka Issue still happening on Expo 48 using react-native-snackbar@2.7.1

image

image

cooperka commented 1 year ago

thanks for the screenshot @jbagaresgaray, I welcome a pull request if you can figure out what's causing the error.