diff --git a/docs/TODO.md b/docs/TODO.md index 0ac49d0..6dbe312 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -19,7 +19,7 @@ - [x] 🛠 Rename `RCTContextMenuManager` to `RCTContextMenuViewManager` and update corresponding js native component - [x] ⭐️ Impl. iOS 14 specific feature: `UpdateVisibleMenu` - [ ] ⭐️ Impl. iOS 14 specific feature: `dismissMenu` -- [ ] ⭐️ Custom Preview - Add support for custom previews, i.e by passing a child component to `RCTContextMenuView`, and wrapping that child inside a view controller and passing it as the preview target in `UIMenu` config. The first child of the `RCTContextMenuView` will be reserved for the custom menu preview. If no child is passed, i.e no custom preview is configured, then the preview target is not set for the `UIMenu`. The preview view should only be mounted when the menu is visible, and thus, it should support setting the preferred size of the preview target. Test if the preview target can be changed when it's already visible. +- [x] ⭐️ Custom Preview - Add support for custom previews, i.e by passing a child component to `RCTContextMenuView`, and wrapping that child inside a view controller and passing it as the preview target in `UIMenu` config. The first child of the `RCTContextMenuView` will be reserved for the custom menu preview. If no child is passed, i.e no custom preview is configured, then the preview target is not set for the `UIMenu`. The preview view should only be mounted when the menu is visible, and thus, it should support setting the preferred size of the preview target. Test if the preview target can be changed when it's already visible. - [ ] ⭐️ Custom Preview - Add support for setting an image as the custom preview. Use the built-in `Image` react native component to handle setting the image source + sizing. Receive the image as a child from `RCTContextMenuView` and cast it to `RCTImage` if necessary. The image will then be wrapped inside a view controller and is set as the `UIMenu`'s preview target. The view should be resized to fit the screen.