Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用ClojureScript、Re-natal和React-Native禁用RTL?_React Native_Clojure_Clojurescript_Re Frame_Re Natal - Fatal编程技术网

使用ClojureScript、Re-natal和React-Native禁用RTL?

使用ClojureScript、Re-natal和React-Native禁用RTL?,react-native,clojure,clojurescript,re-frame,re-natal,React Native,Clojure,Clojurescript,Re Frame,Re Natal,我正在re-natal平台上开发一个基于ClojureScript和React Native的应用程序。我在Android平台上禁用应用程序的RTL时遇到了一个问题 这是在react native中禁用RTL的代码,它完全可以正常工作: const ReactNative = require('react-native'); ReactNative.I18nManager.allowRTL(false); 我认为这正是cljs中的上述代码: (def ReactNative (js/req

我正在re-natal平台上开发一个基于ClojureScript和React Native的应用程序。我在Android平台上禁用应用程序的RTL时遇到了一个问题

这是在react native中禁用RTL的代码,它完全可以正常工作:

const ReactNative = require('react-native');

ReactNative.I18nManager.allowRTL(false); 
我认为这正是cljs中的上述代码:

(def ReactNative (js/require "react-native"))

(.allowRTL (.I18nManager ReactNative) false)
然而,我得到了这个错误:

“对象不是函数(评估'my app.android.core.ReactNative.I18nManager())”

自然反应:“v0.50.3”

反应:“16.0.0”

重新帧:“0.9.2”

clojurescript:“1.9.542”

clojure:“1.9.0-alpha16”


I18nManager
ReactNative
对象的字段(不是方法)。应该这样访问它:
(-I18nManager ReactNative)
。因此,相当于

ReactNative.I18nManager.allowRTL(false); 
将是

(.allowRTL (.-I18nManager ReactNative) false)