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
d02ea2ca
Commit
d02ea2ca
authored
May 15, 2018
by
Libin Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update example
parent
c7b04d2f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1451 additions
and
997 deletions
+1451
-997
Examples/simple-fcm-client/android/app/src/main/java/com/google/firebase/quickstart/fcm/MainApplication.java
...a/com/google/firebase/quickstart/fcm/MainApplication.java
+7
-0
Examples/simple-fcm-client/app/App.js
Examples/simple-fcm-client/app/App.js
+195
-167
Examples/simple-fcm-client/package.json
Examples/simple-fcm-client/package.json
+1
-1
Examples/simple-fcm-client/yarn.lock
Examples/simple-fcm-client/yarn.lock
+1248
-829
No files found.
Examples/simple-fcm-client/android/app/src/main/java/com/google/firebase/quickstart/fcm/MainApplication.java
View file @
d02ea2ca
...
...
@@ -10,6 +10,7 @@ import com.facebook.react.ReactInstanceManager;
import
com.facebook.react.ReactNativeHost
;
import
com.facebook.react.ReactPackage
;
import
com.facebook.react.shell.MainReactPackage
;
import
com.facebook.soloader.SoLoader
;
import
java.util.Arrays
;
import
java.util.List
;
...
...
@@ -36,4 +37,10 @@ public class MainApplication extends Application implements ReactApplication {
public
ReactNativeHost
getReactNativeHost
()
{
return
mReactNativeHost
;
}
@Override
public
void
onCreate
()
{
// <-- Check this block exists
super
.
onCreate
();
SoLoader
.
init
(
this
,
/* native exopackage */
false
);
// <-- Check this line exists within the block
}
}
Examples/simple-fcm-client/app/App.js
View file @
d02ea2ca
This diff is collapsed.
Click to expand it.
Examples/simple-fcm-client/package.json
View file @
d02ea2ca
...
...
@@ -8,7 +8,7 @@
},
"dependencies"
:
{
"react"
:
"16.0.0-alpha.12"
,
"react-native"
:
"^0.
47.2
"
,
"react-native"
:
"^0.
55.4
"
,
"react-native-fcm"
:
"^14.1.3"
,
"react-native-maps"
:
"^0.20.1"
,
"react-navigation"
:
"^1.2.1"
...
...
Examples/simple-fcm-client/yarn.lock
View file @
d02ea2ca
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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