react-native-notificated
react-native-notificated copied to clipboard
[BUG] no children in the NotificationsProvider
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