Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ds147000
/
react-native-project-storage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2cc98596
authored
Sep 21, 2020
by
GGbong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字体库
1 parent
87735636
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
src/config/index.js
src/router/route/index.js
src/views/home/styles.js
src/views/home/view.js
src/config/index.js
View file @
2cc9859
export
{
APP
}
from
'./app'
export
{
FORM
}
from
'./form'
export
const
UI_WIDTH
=
750
\ No newline at end of file
src/router/route/index.js
View file @
2cc9859
...
...
@@ -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'
...
...
src/views/home/styles.js
View file @
2cc9859
import
{
StyleSheet
}
from
'react-native'
import
{
setUnit
}
from
'../../libs/utils'
export
const
styles
=
StyleSheet
.
create
({
title
:
{
fontSize
:
setUnit
(
40
),
paddingTop
:
setUnit
(
200
),
textAlign
:
'center'
}
})
src/views/home/view.js
View file @
2cc9859
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
>
)
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment