cljsrn

How to prevent node from running out of memory when bundling js for React Native

独自空忆成欢 提交于 2019-12-18 15:16:22
问题 When bundling js for React Native using ClojureScript I got the following error. It seems that node runs out of memory when bundling the javascript bundle. This is probably more likely to happen when using ClojureScript since the resulting js files are generally bigger than vanilla js. FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory <--- Last few GCs ---> 152689 ms: Mark-sweep 1369.3 (1434.8) -> 1362.8 (1434.8) MB, 2794.5 / 0 ms [allocation failure] [GC in

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