Lists/index.js
import * as React from 'react'
import { FlatList, SafeAreaView, View } from 'react-native';
import colors from '../../assets/styles/colors.js'
import NavigationHeader from '../../components/NavigationHeader'
import RadialButton from '../../components/Buttons/RadialButton'
export default function Lists(){
return(
<React.Fragment>
<SafeAreaView style={{flex:1, backgroundColor: colors.blue}}>
<NavigationHeader barStyle='light' />
<View style={{flex:0.5,paddingBottom: 25, paddingLeft: 20}}>
<View style={{flex:1, flexDirection: 'row', height: 40, maxHeight: 40}}>
<View style={{width: 66, alignItems: 'center', justifyContent: 'center'}}>
<Text style={{fontSize: 22, color: colors.white, fontFamily: RobotoBold}}></Text>
<Text style={{fontSize: 12, color: colors.blue2, fontFamily: RobotoRegular}}>Lists</Text>
</View>
<View style={{width: 81, alignItems: 'center', justifyContent: 'center', borderLeftWidth:2, borderColor: colors.white}}>
<Text style={{fontSize: 22, color: colors.white, fontFamily: RobotoBold}}></Text>
<Text style={{fontSize: 12, color: colors.blue2, fontFamily: RobotoRegular}}>Words</Text>
</View>
</View>
</View>
<View style={{flex: 8, backgroundColor: colors.blue1, borderTopLeftRadius: 15, borderTopRightRadius: 15}}>
<Text style={{fontSize: 20, color: colors.black, fontFamily: RobotoRegular, marginTop: 26, marginLeft: 16}}>My dictionary</Text>
<FlatList style={{marginVertical: 21}}></FlatList>
<RadialButton></RadialButton>
</View>
</SafeAreaView>
<SafeAreaView style={{flex:0, backgroundColor: colors.blue1}}>
</SafeAreaView>
</React.Fragment>
);
}
colors.js
import * as React from 'react'
export default colors = {
blue: "#4D8ADA",
blue1: "#FAFCFF",
blue2: "#D5E2F2",
blue3: "#DEECFE",
black: "#1E1E1E",
blackOpacity80: "rgba(30, 30, 30, 0.8)",
blackOpacity20: "rgba(30, 30, 30, 0.2)",
white: "white",
red: "#EE6161",
}
тег React.Fragment
заменял и просто на <></>
и на <View></View>
, не проходит ни один пункт