Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BasicApp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
writtyflame
BasicApp
Commits
2b6cc770
Commit
2b6cc770
authored
Jun 13, 2019
by
shiyunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agera rn
parent
8676a52e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
19 deletions
+5
-19
navigationStack.js
src/BasicNavigator/navigationStack.js
+0
-16
FramePage.js
src/home/FramePage.js
+3
-1
index.js
src/themePage/index.js
+0
-0
Tool.js
src/utils/Tool.js
+1
-1
constants.js
src/utils/constants.js
+1
-1
No files found.
src/BasicNavigator/navigationStack.js
View file @
2b6cc770
...
@@ -54,24 +54,8 @@ TabPage.navigationOptions = ({ navigation }) => {
...
@@ -54,24 +54,8 @@ TabPage.navigationOptions = ({ navigation }) => {
const
params
=
routes
?
routes
[
navigation
.
state
.
index
].
params
:
null
;
const
params
=
routes
?
routes
[
navigation
.
state
.
index
].
params
:
null
;
const
headerTitle
=
params
?
params
.
title
:
''
;
const
headerTitle
=
params
?
params
.
title
:
''
;
//const headerTitleStyle = {
// fontSize: System.iOS ? 23 : 20,
// color: 'white',
// flex: 1,
// textAlign: 'center',
// paddingTop: System.Android ? 17 : null
//};
const
headerBackTitle
=
null
;
const
headerBackTitle
=
null
;
const
headerTintColor
=
'white'
;
const
headerTintColor
=
'white'
;
//const headerStyle = {
// backgroundColor: Theme.navColor,
// shadowColor: 'transparent',
// shadowOpacity: 0,
// borderBottomWidth: 0,
// borderBottomColor: 'transparent',
// elevation: 0
//};
// 这里的导航都是手动控制的,所以这里设置为null就可以隐藏了。
// 这里的导航都是手动控制的,所以这里设置为null就可以隐藏了。
const
header
=
null
;
const
header
=
null
;
...
...
src/home/FramePage.js
View file @
2b6cc770
...
@@ -18,7 +18,9 @@ import {
...
@@ -18,7 +18,9 @@ import {
import
{
push
}
from
'../BasicNavigator/actions'
;
import
{
push
}
from
'../BasicNavigator/actions'
;
type
Props
=
{};
type
Props
=
{};
const
styles
=
StyleSheet
.
create
({
const
styles
=
StyleSheet
.
create
({
container
:
{
container
:
{
flex
:
1
,
flex
:
1
,
...
...
src/
T
hemePage/index.js
→
src/
t
hemePage/index.js
View file @
2b6cc770
File moved
src/utils/Tool.js
View file @
2b6cc770
...
@@ -25,7 +25,7 @@ export const getNetInfoStatus = (netInfo: any) => {
...
@@ -25,7 +25,7 @@ export const getNetInfoStatus = (netInfo: any) => {
};
};
};
};
export
const
findPopKey
=
(
routes
:
Array
,
pageName
)
=>
{
export
const
findPopKey
=
(
routes
:
Array
,
pageName
)
=>
{
let
key
=
''
;
let
key
=
''
;
if
(
routes
.
length
>
0
)
{
if
(
routes
.
length
>
0
)
{
const
tag
=
routes
.
find
(
route
=>
route
.
routeName
===
pageName
);
const
tag
=
routes
.
find
(
route
=>
route
.
routeName
===
pageName
);
...
...
src/utils/constants.js
View file @
2b6cc770
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
import
React
from
'react'
;
import
React
from
'react'
;
export
type
ENV_TYPE
=
'DEV'
|
'FT'
|
'SIT'
|
'UAT'
|
'PRO'
|
'PRE_UAT'
export
type
ENV_TYPE
=
'DEV'
|
'FT'
|
'SIT'
|
'UAT'
|
'PRO'
//export const ENV = 'DEV' // 预留的DEV,地址和SIT相同
//export const ENV = 'DEV' // 预留的DEV,地址和SIT相同
export
const
ENV
=
'SIT'
export
const
ENV
=
'SIT'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment