react-native-notificated icon indicating copy to clipboard operation
react-native-notificated copied to clipboard

[BUG] no children in the NotificationsProvider

Open michalstruck opened this issue 1 year ago • 1 comments

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

  • [x] I am running the latest version
  • [x] I checked the documentation and found no answer
  • [x] I checked to make sure that this issue has not already been filed

Describe the bug NotificationsProvider does not work as specified in the docs, at the type level

To Reproduce TS 5.3.2

const Component = () => {
  const { NotificationsProvider } = createNotifications();

  return (
    <NotificationsProvider>
      <></>
    </NotificationsProvider>
  );
};

Possible Solution Adjust the type, it's specified as React.FC, since not so long ago it doesn't implicitly contain the children prop

michalstruck avatar Feb 01 '24 17:02 michalstruck