Open lorenjohnson opened 2 years ago
I have done some pre-work on this by re-designing the full-width image focused LinkPreview to being the normal Web size and style. That puts Post Images much more into focus, and leaves some attention and space for "Featured" video link previews to stand out more.
Either use https://github.com/react-native-video/react-native-video or create WebView on Evo for our use of
ReactPlayer
. The second option is probably preferable, but for performance reasons it may be best to render that WebView only in the Post Detail view and not in the Feed (in the Feed just showing the thumbnail).After some research and experiments it seems there are two paths forward:
1) Install and configure Expo Modules
expo-av
into the project. Likely this will give us the best native experience and open the door to a couple other Expo modules we'd really like to be using (i.e.Clipboard.copyHTML
). Rough sketch of steps to accomplish this:2) Create a
hyloApp
route inhylo-evo
for aReactPlayer
instance that takes the URL through a querystring param and map the API throughpostMessage
much like is done currently with the the HyloEditor.In both cases the result will need to be a new component called
Feature
which renders instead of the currentLinkPreview
in the case of a post having alinkPreviewFeatured
set to true.* Once we have embedded videos in the editor a custom
react-native-render-html
renderer will need to be created inHyloHTML
to handle this case.