Ran rename-unsafe-lifecycles codemod on xplat/js

Reviewed By: trueadm

Differential Revision: D6889214

fbshipit-source-id: e815cda4b09f3650ae3b0b9a44ae6f5fcb48fe25
This commit is contained in:
Brian Vaughn
2018-02-08 10:26:45 -08:00
committed by Facebook Github Bot
parent fa334ce464
commit 6f007e8957
53 changed files with 75 additions and 66 deletions

View File

@@ -38,7 +38,7 @@ class Button extends React.Component<$FlowFixMeProps> {
}
class NotificationExample extends React.Component<{}> {
componentWillMount() {
UNSAFE_componentWillMount() {
PushNotificationIOS.addEventListener('register', this._onRegistered);
PushNotificationIOS.addEventListener('registrationError', this._onRegistrationError);
PushNotificationIOS.addEventListener('notification', this._onRemoteNotification);