Skip to content

Commit 8b0501f

Browse files
authored
Update README.md
1 parent 5d5294b commit 8b0501f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,12 @@ Todos
205205
- [ ] React Native support. [1](https://github.com/zenyr/react-native-portal) [2](https://github.com/cloudflare/react-gateway) [3](https://medium.com/@naorzruk/portals-in-react-native-22797ba8aa1b) [4](https://stackoverflow.com/questions/46505378/can-we-have-react-16-portal-functionality-react-native) [5](https://github.com/callstack/react-native-paper/blob/master/src/components/Portal/PortalManager.tsx) Probably going to have to add a `Provider`...
206206
- [ ] add correct return types
207207
- [ ] tests (priority)
208-
- [ ] maybe have a `<Provider order={['Modal', 'openModal']} />` then you can change the order of the array destructuring syntax
208+
- [ ] potential syntax ideas
209+
```
210+
// then you can change the order of the array destructuring syntax
211+
<Provider order={['Modal', 'openModal']} />
212+
213+
// CustomModal, CustomCloseButton
214+
<Provider Modal={CustomModal} CloseButton={CustomClostButton} />
215+
const { Modal, CloseButton } = useProvider()
216+
```

0 commit comments

Comments
 (0)