cost 196 ms
测量react-native ref的高度(ListView) - Measure height of react-native ref (ListView)

如果你只有ref你如何测量反应原生元素的高度? 我看到NativeMethodsMixin,但目前尚不清楚如何实现它。 我试过把它包括为: 但该应用程序抱怨NativeMethodsMixin未定义。 如果我去RCTUIManager路线: 然后我收到一个错误: ...

React Native - 如何衡量ScrollView中的内容大小? - React Native - How to measure size of content in ScrollView?

我想测量ScrollView内容的大小。 因此,我使用NativeMethodsMixin measure : 我不太确定从哪里开始,与此问题相关的大多数SO帖子似乎已经过时了。 我知道我需要为我的ScrollView创建一个ref (我做了并调用_scrollView ,我 ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM