2021年1月22日星期五

How to make react native style or stylesheets work I have issues with current stylesheet

Styles does not aways work can someone help

import {StyleSheet} from 'react-native'  

does not work

<View style={styles.container}>  ... other elements  

this work

<View style=>  

my styleSheet

const styles = StyleSheet.create({    container: {      flex: 1,      flexGrow:1    },    gridView: {      //marginTop: 10,      flex: 1,      alignContent: 'center',    },  

The stylesheet works for all other element just seem not to work on view elements

https://stackoverflow.com/questions/65855928/how-to-make-react-native-style-or-stylesheets-work-i-have-issues-with-current-st January 23, 2021 at 01:06PM

没有评论:

发表评论