mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
added support flex: 1 and and tag support Dimensions (#4460)
This commit is contained in:
parent
c461d46efd
commit
763ddc08a1
|
@ -10,6 +10,8 @@ let index = 0
|
||||||
const normalizeNextElements = `
|
const normalizeNextElements = `
|
||||||
body > div:first-child,
|
body > div:first-child,
|
||||||
#__next {
|
#__next {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
|
@ -3,8 +3,8 @@ import { StyleSheet, Text, View } from 'react-native'
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
|
flex: 1,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
height: '100%',
|
|
||||||
justifyContent: 'center'
|
justifyContent: 'center'
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
|
|
Loading…
Reference in a new issue