Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

daemonchen/react-native-getui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

react-native-getui

react native getui

reactnative集成个推推送:

useage:

add GeTuiManager.h & GeTuiManager.m to your project,

and then change your AppDelegate.m like the ./Useage/AppDelegate.m & ./Useage/AppDelegate.h,

add AppDelegate+GeTui category like the ./Useage/AppDelegate+GeTui.h & ./Useage/AppDelegate+GeTui.m

and in your react-native code:

index.ios.js

 import React, {NativeAppEventEmitter} from 'react-native'
 componentDidMount: function(){
 this.unlistenNotification = NativeAppEventEmitter.addListener(
 'notify',
 (notifData) => {
 this.factoryNotify(notifData);
 }
 );
 },
 componentWillUnmount: function() {
 this.unlistenNotification.remove();
 },

dive in & have fun

author: 503802922 scott chen

mail: cgyqqcgy@gmail.com

About

react native getui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /