我发现我可以通过ReactNativeComponentTree通过合成事件获取对应的元素
"dependencies": {
"native-base": "^2.8.1",
"react": "16.5.0",
"react-native": "0.57.0",
"react-native-fs": "^2.11.15"
}
这些是我的依赖项。
import ReactNativeComponentTree from 'react-native/Libraries/Renderer/shims/ReactNativeComponentTree';
我尝试了此导入,但无法正常工作。
我在路径中找不到ReactNativeComponentTree文件。怎么了?