体验新版 GitCode,发现更多精彩内容 >>
import React, {Component} from 'react'; import {View, Text, StyleSheet} from 'react-native'; class Study extends Component { constructor() { super(); } render() { return ( <View style={styles.container}> <Text style={styles.text}>Study自习模块</Text> </View> ); } } const styles = StyleSheet.create({ container: { backgroundColor: '#F2E2CE', opacity: 0.5, flex: 1, }, text: { fontSize: 50, fontWeight: 'bold', textAlign: 'center', }, }); export default Study;