TheWidlarzGroup / react-native-notificated

⚡️React Native toast notifications
https://thewidlarzgroup.github.io/react-native-notificated/
MIT License
365 stars 21 forks source link

[BUG] notify or useNotifications imports from package in monorepo doesn't work #159

Closed jesuscovam closed 1 year ago

jesuscovam commented 2 years ago

Prerequisites Please answer the following questions for yourself before submitting an issue.

Describe the bug In a monorepo, I need to prop drill the notify function from the navigator (on the app) to the Screen (from a package in the monorepo) that I shared between 2 apps.

From the Screen in the package, direct import of notify or useNotifications doesn't work

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. import notify or useNotifications from a component or screen from a package in a monorepo

Expected behavior the display of a the notification when the notify function is called

Possible Solution Im sharing the notify function as a route params through react-navigation

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context running on the Expo Go App.

woodrejs commented 2 years ago

Thank you for letting us know about this Issue. We will look at it as soon as possible 😃

woodrejs commented 2 years ago

@jesuscovam Can you show logs for errors that you receive?

mateki0 commented 1 year ago

Closing because we don't get reply for a long time. Please reopen if it's still an issue

PdoubleU commented 1 year ago

Hi @jesuscovam 👋 , how's going?

It's been quite a while since you opened this issue. I was just wondering, have you been using react-native-notificated recently? Did that bug pop up again? 🤔