Invariant Violation: View config not found for name div

<div> is an invalid React Native Component

You should use React Native Basic Components

import { View, Text } from 'react-native';

render() {
    return (
        <View>
            <Text>123</Text>
        </View>
    );
}

View is a container that supports layout with flexbox, style, some touch handling, and access controls. Whereas <Text> can be used in order to display any text.


the React Native documentation does not list HTML elements as valid view components. There is no view config for <div> because <div> is not a React Native component.