re-natal

ClojureScript + React-Native - Embed Videos

筅森魡賤 提交于 2019-12-02 10:36:29
问题 I am new to ClojureScript. I would like to embed video (Youtube) to the hybrid mobile app using ClojureScript and React Native. I have tried to implement react-native-video and react-native-youtube plugins in ClojureScript for achieving this. But, both of these end with a crash. I don't know whether there is something wrong with referring to the library or not. Using react-native-video : (def Video (js/require "react-native-video")) (def video-view (r/adapt-react-class Video)) The component

ClojureScript + React-Native - Embed Videos

血红的双手。 提交于 2019-12-02 06:37:51
I am new to ClojureScript. I would like to embed video (Youtube) to the hybrid mobile app using ClojureScript and React Native. I have tried to implement react-native-video and react-native-youtube plugins in ClojureScript for achieving this. But, both of these end with a crash. I don't know whether there is something wrong with referring to the library or not. Using react-native-video : (def Video (js/require "react-native-video")) (def video-view (r/adapt-react-class Video)) The component reference is: [video-view {:style {:position "absolute" :top 0 :bottom 0 :left 0 :right 0} :source {:uri