In React native we create components as:-
export default class MyComponent extends Component {
render() {
return (
<View >
</View>
)
}
}
and make a Android build but when its run on android OS then these components will convert into which android component (fragment, View or ViewGroup).
最佳答案
Basically In android Its Invoke A single activity (MainActivity) and inside it a single view ReactRootView rendered something like fragment renders in activity. All React native components render inside single ReactRootView.
了解更多详情:- https://facebook.github.io/react-native/docs/integration-with-existing-apps
关于android - React 原生组件在运行时如何作为 View 、ViewGroup 或 Fragments 运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53626379/