Android Expo app problem workaround-ed

Was getting this error when trying to view project in development on Expo app - Android

[Text strings must be rendered within a <Text> component](https://stackoverflow.com/questions/59470279/react-native-text-strings-must-be-rendered-within-a-text-component)

it pointed to this code on the second line

return(
            <View>
                <WebView originWhitelist={['*']}
                    source={{ uri: 'https://youtu.be/8-bO6kNxp8k',baseUrl:'' }}
                    style={{flex:1,height:2}}
                />
            </View>
        )

I removed all spaces between the tags for the entire segment, kept in the newlines and tabs though, and it stopped giving the error.
Hope this helps. May be a React Native problem and not an Expo Problem. It didn’t appear on the Web maybe as this segment of code was bypassed as WebView id not supported on Web

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.