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

Warning when calling show function #75

Closed
jpmoyn opened this issue May 10, 2018 · 1 comment
Closed

Warning when calling show function #75

jpmoyn opened this issue May 10, 2018 · 1 comment

Comments

@jpmoyn
Copy link

jpmoyn commented May 10, 2018

I get a warning when I call this show function:

Snackbar.show({
        title: 'Thank you for your feedback. We will resolve this issue internally',
        backgroundColor: 'green',
        action: {
          title: 'Thanks',
          color: 'white',
          onPress: () => { /* Do something. */ },
        },
      })

The snackbar does not show, and I get this warning:

TypeError: undefined is not a function (near '...Snackbar.show...')

I am running from xcode, in a typescript RN app running on an iPad simulator.

Does anyone know how to fix this?

@cooperka
Copy link
Owner

Hi @jpmoyn, this seems potentially similar to #43. Can you give those suggestions a try? Let me know if you're still having issues.

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

No branches or pull requests

2 participants