onAfterValidation() {
    PushNotificationIOS.requestPermissions()

    PushNotificationIOS.addEventListener('register', (token) => {
      let date = new Date()
      const timeZone = date.getTimezoneOffset() / 60

      this.props.postPushInstallation({
        "deviceType": "ios",
        "deviceToken": token,
        "user": {
          "className": "_User",
          "__type": "Pointer",
          "objectId": this.props.user.id
        },
        "timeZone": timeZone
      })
    })
  }
/**
   * After the user has signed up. Prompt them with the option to subscribe to push notifications.
   *
   * @return {void}
   */
After the user has signed up. Prompt them with the option to subscribe to push notifications.
@return {void}
After the user has signed up . Prompt them with the option to subscribe to push notifications . @return { void }
onAfterValidation() {
    PushNotificationIOS.requestPermissions()
    PushNotificationIOS.addEventListener('register', (token) => {
      let date = new Date()
      const timeZone = date.getTimezoneOffset() / 60
      this.props.postPushInstallation({
        "deviceType": "ios",
        "deviceToken": token,
        "user": {
          "className": "_User",
          "__type": "Pointer",
          "objectId": this.props.user.id
        },
        "timeZone": timeZone
      })
    })
  }
onAfterValidation ( ) { PushNotificationIOS . requestPermissions ( ) PushNotificationIOS . addEventListener ( 'register' , ( token ) => { let date = new Date ( ) const timeZone = date . getTimezoneOffset ( ) / 60 this . props . postPushInstallation ( { "deviceType" : "ios" , "deviceToken" : token , "user" : { "className" : "_User" , "__type" : "Pointer" , "objectId" : this . props . user . id } , "timeZone" : timeZone } ) } ) }
After the user has signed up.
After the user has signed up .