Version:
react: 16.3.1
react-native: ~0.55.2
native-base: ^2.8.0
Issue:Warning: Failed prop type: Invalid props.style key 'NativeBase' supplied to 'View'
Platform: iOS & Android
i get this warning in react-native project whenever i integrate the native-base to the project.
Here is the code for this.
import {
View,
TouchableHighlight,
StyleSheet,
Image,
Dimensions,
ScrollView,
SafeAreaView
} from "react-native";
import { Button, Text } from "native-base";
<ScrollView>
{props.detail.site_url !== '#' ? (
<View style={styles.visitButton}>
<TouchableHighlight>
<Button
success
onPress={() => props.visitSite(props.detail.site_url)}
>
<Text>{props.detail.name}</Text>
</Button>
</TouchableHighlight>
</View>
) : (
<View></View>
)}
</ScrollView>
const styles = Stylesheet.create({
visitButton: {
flex: 1,
marginVertical: 20,
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
}
})