Commit 2cc98596 by GGbong

增加字体库

1 parent 87735636
export { APP } from './app'
export { FORM } from './form'
export const UI_WIDTH = 750
\ No newline at end of file
......@@ -2,7 +2,7 @@
import React from 'react'
import { createStackNavigator } from '@react-navigation/stack'
import { headerStyle } from '../config'
import { TabRouter } from '../tab'
import TabRouter from '../tab'
import About from '../../views/about'
import Privacy from '../../views/about/privacy'
......
import { StyleSheet } from 'react-native'
import { setUnit } from '../../libs/utils'
export const styles = StyleSheet.create({
title: {
fontSize: setUnit(40),
paddingTop: setUnit(200),
textAlign: 'center'
}
})
import React from 'react'
import { View } from 'react-native'
import { View, Text } from 'react-native'
import { styles } from './styles'
import {name as appName} from '../../../app.json';
const Page = () => {
const Page = ({ navigation }) => {
return (
<View>
<Text>我是首页</Text>
<View >
<Text style={styles.title} >{appName}</Text>
<Text style={styles.title} onPress={() => navigation.navigate('About')} >查看APP详细信息</Text>
</View>
)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!