Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-fcm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-fcm
Commits
dffb9bfd
Commit
dffb9bfd
authored
Mar 07, 2018
by
Libin Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update example
parent
0e4aca82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
Examples/simple-fcm-client/app/App.js
Examples/simple-fcm-client/app/App.js
+15
-7
No files found.
Examples/simple-fcm-client/app/App.js
View file @
dffb9bfd
...
@@ -11,7 +11,8 @@ import {
...
@@ -11,7 +11,8 @@ import {
TouchableOpacity
,
TouchableOpacity
,
View
,
View
,
Clipboard
,
Clipboard
,
Platform
Platform
,
ScrollView
}
from
'
react-native
'
;
}
from
'
react-native
'
;
import
{
StackNavigator
}
from
'
react-navigation
'
;
import
{
StackNavigator
}
from
'
react-navigation
'
;
...
@@ -182,6 +183,7 @@ class MainPage extends Component {
...
@@ -182,6 +183,7 @@ class MainPage extends Component {
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
ScrollView
style
=
{{
paddingHorizontal
:
20
}}
>
<
Text
style
=
{
styles
.
welcome
}
>
<
Text
style
=
{
styles
.
welcome
}
>
Welcome
to
Simple
Fcm
Client
!
Welcome
to
Simple
Fcm
Client
!
<
/Text
>
<
/Text
>
...
@@ -214,14 +216,20 @@ class MainPage extends Component {
...
@@ -214,14 +216,20 @@ class MainPage extends Component {
<Text style={styles.buttonText}>Schedule Notification in 5s</Text>
<Text style={styles.buttonText}>Schedule Notification in 5s</Text>
</TouchableOpacity>
</TouchableOpacity>
<Text style={styles.instructions}>
Init notif:
</Text>
<Text>
<Text>
Init notif:
{JSON.stringify(this.state.initNotif)}
{JSON.stringify(this.state.initNotif)}
</Text>
</Text>
<Text s
electable={true} onPress={() => this.setClipboardContent(this.state.token)} s
tyle={styles.instructions}>
<Text style={styles.instructions}>
Token:
{this.state.token}
Token:
</Text>
</Text>
<Text selectable={true} onPress={() => this.setClipboardContent(this.state.token)}>
{this.state.token}
</Text>
</ScrollView>
</View>
</View>
);
);
}
}
...
@@ -281,8 +289,8 @@ const styles = StyleSheet.create({
...
@@ -281,8 +289,8 @@ const styles = StyleSheet.create({
button: {
button: {
backgroundColor: "teal",
backgroundColor: "teal",
paddingHorizontal: 20,
paddingHorizontal: 20,
paddingVertical: 1
0
,
paddingVertical: 1
5
,
marginVertical: 1
5
,
marginVertical: 1
0
,
borderRadius: 10
borderRadius: 10
},
},
buttonText: {
buttonText: {
...
...
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