[
  {
    "path": ".buckconfig",
    "content": "\n[android]\n  target = Google Inc.:Google APIs:23\n\n[maven_repositories]\n  central = https://repo1.maven.org/maven2\n"
  },
  {
    "path": ".eslintignore",
    "content": "node_modules"
  },
  {
    "path": ".eslintrc.js",
    "content": "module.exports = {\n  root: true,\n  extends: [\"@react-native-community\"]\n};\n"
  },
  {
    "path": ".flowconfig",
    "content": "[ignore]\n; We fork some components by platform\n.*/*[.]android.js\n\n; Ignore \"BUCK\" generated dirs\n<PROJECT_ROOT>/\\.buckd/\n\n; Ignore polyfills\nnode_modules/react-native/Libraries/polyfills/.*\n\n; These should not be required directly\n; require from fbjs/lib instead: require('fbjs/lib/warning')\nnode_modules/warning/.*\n\n; Flow doesn't support platforms\n.*/Libraries/Utilities/LoadingView.js\n\n[untyped]\n.*/node_modules/@react-native-community/cli/.*/.*\n\n[include]\n\n[libs]\nnode_modules/react-native/interface.js\nnode_modules/react-native/flow/\n\n[options]\nemoji=true\n\nesproposal.optional_chaining=enable\nesproposal.nullish_coalescing=enable\n\nmodule.file_ext=.js\nmodule.file_ext=.json\nmodule.file_ext=.ios.js\n\nmunge_underscores=true\n\nmodule.name_mapper='^react-native/\\(.*\\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\\1'\nmodule.name_mapper='^@?[./a-zA-Z0-9$_-]+\\.\\(bmp\\|gif\\|jpg\\|jpeg\\|png\\|psd\\|svg\\|webp\\|m4v\\|mov\\|mp4\\|mpeg\\|mpg\\|webm\\|aac\\|aiff\\|caf\\|m4a\\|mp3\\|wav\\|html\\|pdf\\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'\n\nsuppress_type=$FlowIssue\nsuppress_type=$FlowFixMe\nsuppress_type=$FlowFixMeProps\nsuppress_type=$FlowFixMeState\n\n[lints]\nsketchy-null-number=warn\nsketchy-null-mixed=warn\nsketchy-number=warn\nuntyped-type-import=warn\nnonstrict-import=warn\ndeprecated-type=warn\nunsafe-getters-setters=warn\nunnecessary-invariant=warn\nsignature-verification-failure=warn\ndeprecated-utility=error\n\n[strict]\ndeprecated-type\nnonstrict-import\nsketchy-null\nunclear-type\nunsafe-getters-setters\nuntyped-import\nuntyped-type-import\n\n[version]\n^0.137.0\n"
  },
  {
    "path": ".gitattributes",
    "content": "*.pbxproj -text\n# specific for windows script files\n*.bat text eol=crlf"
  },
  {
    "path": ".github/workflows/ci.yml",
    "content": "name: Build\non: push\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node-version: [16]\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-node@v1\n        with:\n          node-version: ${{ matrix.node-version }}\n      - name: Get yarn cache\n        id: yarn-cache\n        run: echo \"::set-output name=dir::$(yarn cache dir)\"\n      - uses: actions/cache@v2\n        with:\n          path: ${{ steps.yarn-cache.outputs.dir }}\n          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}\n      - name: Install Dependencies\n        run: yarn\n      - name: ESLint Checks\n        run: yarn lint\n  tsc:\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node-version: [16]\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-node@v1\n        with:\n          node-version: ${{ matrix.node-version }}\n      - name: Get yarn cache\n        id: yarn-cache\n        run: echo \"::set-output name=dir::$(yarn cache dir)\"\n      - uses: actions/cache@v2\n        with:\n          path: ${{ steps.yarn-cache.outputs.dir }}\n          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}\n      - name: Install Dependencies\n        run: yarn\n      - name: TypeScript type check\n        run: yarn test:tsc\n  flow:\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node-version: [16]\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-node@v1\n        with:\n          node-version: ${{ matrix.node-version }}\n      - name: Get yarn cache\n        id: yarn-cache\n        run: echo \"::set-output name=dir::$(yarn cache dir)\"\n      - uses: actions/cache@v2\n        with:\n          path: ${{ steps.yarn-cache.outputs.dir }}\n          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}\n      - name: Install Dependencies\n        run: yarn\n      - name: TypeScript type check\n        run: yarn test:flow\n  ios:\n    runs-on: macos-latest\n    strategy:\n      matrix:\n        node-version: [16]\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions/setup-node@v1\n        with:\n          node-version: ${{ matrix.node-version }}\n      - name: Get yarn cache\n        id: yarn-cache\n        run: echo \"::set-output name=dir::$(yarn cache dir)\"\n      - uses: actions/cache@v2\n        with:\n          path: ${{ steps.yarn-cache.outputs.dir }}\n          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}\n      - name: Install Dependencies\n        run: yarn\n      - name: Install Podfiles\n        run: cd example && npx pod-install\n      - name: Build example app\n        run: yarn ios\n"
  },
  {
    "path": ".gitignore",
    "content": "\n# OSX\n#\n.DS_Store\n\n# node.js\n#\nnode_modules/\nnpm-debug.log\nyarn-error.log\n  \n\n# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n*.xccheckout\n*.moved-aside\nDerivedData\n*.hmap\n*.ipa\n*.xcuserstate\nproject.xcworkspace\n      \n\n# Android/IntelliJ\n#\nbuild/\n.idea\n.gradle\nlocal.properties\n*.iml\n\n# BUCK\nbuck-out/\n\\.buckd/\n*.keystore\n\n# Editor config\n.vscode\n\n# eslintcache\n.eslintcache\n"
  },
  {
    "path": ".prettierrc.js",
    "content": "module.exports = {\n  bracketSpacing: false,\n  jsxBracketSameLine: true,\n  singleQuote: true,\n  trailingComma: 'all',\n};\n"
  },
  {
    "path": ".watchmanconfig",
    "content": "{}"
  },
  {
    "path": ".yarnclean",
    "content": "# test directories\n__tests__\ntest\ntests\npowered-test\n\n# asset directories\ndocs\ndoc\nwebsite\nimages\n\n# examples\nexample\nexamples\n\n# code coverage directories\ncoverage\n.nyc_output\n\n# build scripts\nMakefile\nGulpfile.js\nGruntfile.js\n\n# configs\nappveyor.yml\ncircle.yml\ncodeship-services.yml\ncodeship-steps.yml\nwercker.yml\n.tern-project\n.gitattributes\n.editorconfig\n.*ignore\n.eslintrc\n.jshintrc\n.flowconfig\n.documentup.json\n.yarn-metadata.json\n.travis.yml\n\n# misc\n*.md\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2020 react-native-community\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.% "
  },
  {
    "path": "README.md",
    "content": "# @react-native-community/push-notification-ios\n\n[![Build Status][build-badge]][build]\n[![Version][version-badge]][package]\n[![MIT License][license-badge]][license]\n[![Lean Core Badge][lean-core-badge]][lean-core-issue]\n\nReact Native Push Notification API for iOS.\n\n| Notification                                                                                                                  | With Action                                                                                                                   | With TextInput Action                                                                                                         |\n| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| <img src=\"https://user-images.githubusercontent.com/6936373/97115527-77c6ee80-173a-11eb-8440-049590a25f31.jpeg\" width=\"320\"/> | <img src=\"https://user-images.githubusercontent.com/6936373/97115526-772e5800-173a-11eb-8b51-c5263bced07a.jpeg\" width=\"320\"/> | <img src=\"https://user-images.githubusercontent.com/6936373/97115522-74cbfe00-173a-11eb-9644-fc1d5e634d6b.jpeg\" width=\"320\"/> |\n\n## Getting started\n\n### Install\n\nUsing npm:\n\n```bash\nnpm i @react-native-community/push-notification-ios --save\n```\n\nor using Yarn:\n\n```bash\nyarn add @react-native-community/push-notification-ios\n```\n\n## Link\n\n### React Native v0.60+\n\nThe package is [automatically linked](https://github.com/react-native-community/cli/blob/master/docs/autolinking.md) when building the app. All you need to do is:\n\n```bash\nnpx pod-install\n```\n\nFor android, the package will be linked automatically on build.\n\n<details>\n <summary>For React Native version 0.59 or older</summary>\n\n### React Native <= v0.59\n\n```bash\nreact-native link @react-native-community/push-notification-ios\n```\n\n- upgrading to `react-native >= 0.60`\n\nFirst, unlink the library. Then follow the instructions above.\n\n```bash\nreact-native unlink @react-native-community/push-notification-ios\n```\n\n- manual linking\n\nIf you don't want to use the methods above, you can always [link the library manually](./docs/manual-linking.md).\n\n</details>\n\n### Add Capabilities : Background Mode - Remote Notifications\n\nGo into your MyReactProject/ios dir and open MyProject.xcworkspace workspace.\nSelect the top project \"MyProject\" and select the \"Signing & Capabilities\" tab.\nAdd a 2 new Capabilities using \"+\" button:\n\n- `Background Mode` capability and tick `Remote Notifications`.\n- `Push Notifications` capability\n\n### Augment `AppDelegate`\n\nFinally, to enable support for `notification` and `register` events you need to augment your AppDelegate.\n\n### Update `AppDelegate.h`\n\nAt the top of the file:\n\n```objective-c\n#import <UserNotifications/UNUserNotificationCenter.h>\n```\n\nThen, add the 'UNUserNotificationCenterDelegate' to protocols:\n\n\nFor RN v0.71 and above\n\n```objective-c\n@interface AppDelegate : RCTAppDelegate <UNUserNotificationCenterDelegate>\n```\n\nFor RN v0.70 and below\n\n```objective-c\n@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>\n```\n\n### Update `AppDelegate.m` or `AppDelegate.mm`\n\nAt the top of the file:\n\n```objective-c\n#import <UserNotifications/UserNotifications.h>\n#import <RNCPushNotificationIOS.h>\n```\n\nThen, in your AppDelegate implementation, add the following:\n\n```objective-c\n// Required for the register event.\n- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken\n{\n [RNCPushNotificationIOS didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];\n}\n// Required for the notification event. You must call the completion handler after handling the remote notification.\n- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo\nfetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler\n{\n  [RNCPushNotificationIOS didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];\n}\n// Required for the registrationError event.\n- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error\n{\n [RNCPushNotificationIOS didFailToRegisterForRemoteNotificationsWithError:error];\n}\n// Required for localNotification event\n- (void)userNotificationCenter:(UNUserNotificationCenter *)center\ndidReceiveNotificationResponse:(UNNotificationResponse *)response\n         withCompletionHandler:(void (^)(void))completionHandler\n{\n  [RNCPushNotificationIOS didReceiveNotificationResponse:response];\n}\n```\n\n And then add the following lines: \n\n```objective-c\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n  ...\n  // Define UNUserNotificationCenter\n  UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n  center.delegate = self;\n\n  return YES;\n}\n\n//Called when a notification is delivered to a foreground app.\n-(void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler\n{\n  completionHandler(UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert | UNNotificationPresentationOptionBadge);\n}\n```\n\n## Migrating from the core `react-native` module\n\nThis module was created when the PushNotificationIOS was split out from the core of React Native. To migrate to this module you need to follow the installation instructions above and then change you imports from:\n\n```js\nimport {PushNotificationIOS} from 'react-native';\n```\n\nto:\n\n```js\nimport PushNotificationIOS from '@react-native-community/push-notification-ios';\n```\n\n## How to determine push notification user click\n\nReceiving remote pushes has two common cases: user dismissed notification and user clicked notification. To have separate logic for each case you can use `notification.getData().userInteraction` to determine push notification user click:\n\n```js\nexport const App = () => {\n  const [permissions, setPermissions] = useState({});\n\n  useEffect(() => {\n    const type = 'notification';\n    PushNotificationIOS.addEventListener(type, onRemoteNotification);\n    return () => {\n      PushNotificationIOS.removeEventListener(type);\n    };\n  });\n\n  const onRemoteNotification = (notification) => {\n    const isClicked = notification.getData().userInteraction === 1;\n\n    if (isClicked) {\n      // Navigate user to another screen\n    } else {\n      // Do something else with push notification\n    }\n    // Use the appropriate result based on what you needed to do for this notification\n    const result = PushNotificationIOS.FetchResult.NoData;\n    notification.finish(result);\n  };\n};\n```\n\n## How to perform different action based on user selected action.\n\n```js\nexport const App = () => {\n  const [permissions, setPermissions] = useState({});\n\n  /**\n   * By calling this function, notification with category `userAction` will have action buttons\n   */\n  const setNotificationCategories = () => {\n    PushNotificationIOS.setNotificationCategories([\n      {\n        id: 'userAction',\n        actions: [\n          {id: 'open', title: 'Open', options: {foreground: true}},\n          {\n            id: 'ignore',\n            title: 'Desruptive',\n            options: {foreground: true, destructive: true},\n          },\n          {\n            id: 'text',\n            title: 'Text Input',\n            options: {foreground: true},\n            textInput: {buttonTitle: 'Send'},\n          },\n        ],\n      },\n    ]);\n  };\n\n  useEffect(() => {\n    const type = 'notification';\n    PushNotificationIOS.addEventListener(type, onRemoteNotification);\n    return () => {\n      PushNotificationIOS.removeEventListener(type);\n    };\n  });\n\n  const onRemoteNotification = (notification) => {\n    const actionIdentifier = notification.getActionIdentifier();\n\n    if (actionIdentifier === 'open') {\n      // Perform action based on open action\n    }\n\n    if (actionIdentifier === 'text') {\n      // Text that of user input.\n      const userText = notification.getUserText();\n      // Perform action based on textinput action\n    }\n    // Use the appropriate result based on what you needed to do for this notification\n    const result = PushNotificationIOS.FetchResult.NoData;\n    notification.finish(result);\n  };\n};\n```\n\n## How to receive rich notification in remote\n\nFollow this [article](https://firebase.google.com/docs/cloud-messaging/ios/send-image) to create rich notification of your own\n\n# Reference\n\n## Methods\n\n### `presentLocalNotification()`\n\n```jsx\nPushNotificationIOS.presentLocalNotification(details);\n```\n\n_Deprecated_ - use `addNotificationRequest` instead.\nSchedules the localNotification for immediate presentation.\n\n**Parameters:**\n\n| Name    | Type   | Required | Description |\n| ------- | ------ | -------- | ----------- |\n| details | object | Yes      | See below.  |\n\ndetails is an object containing:\n\n- `alertBody` : The message displayed in the notification alert.\n- `alertAction` : The \"action\" displayed beneath an actionable notification. Defaults to \"view\". Note that Apple no longer shows this in iOS 10 +\n- `alertTitle` : The text displayed as the title of the notification alert.\n- `soundName` : The sound played when the notification is fired (optional).\n- `isSilent` : If true, the notification will appear without sound (optional).\n- `category` : The category of this notification, required for actionable notifications (optional).\n- `userInfo` : An object containing additional notification data (optional).\n- `applicationIconBadgeNumber` The number to display as the app's icon badge. The default value of this property is 0, which means that no badge is displayed (optional).\n\n---\n\n### `scheduleLocalNotification()`\n\n```jsx\nPushNotificationIOS.scheduleLocalNotification(details);\n```\n\n_Deprecated_ - use `addNotificationRequest` instead.\nSchedules the localNotification for future presentation.\n\n**Parameters:**\n\n| Name    | Type   | Required | Description |\n| ------- | ------ | -------- | ----------- |\n| details | object | Yes      | See below.  |\n\ndetails is an object containing:\n\n- `fireDate` : The date and time when the system should deliver the notification.\n- `alertTitle` : The text displayed as the title of the notification alert.\n- `alertBody` : The message displayed in the notification alert.\n- `alertAction` : The \"action\" displayed beneath an actionable notification. Defaults to \"view\". Note that Apple no longer shows this in iOS 10 +\n- `soundName` : The sound played when the notification is fired (optional).\n- `isSilent` : If true, the notification will appear without sound (optional).\n- `category` : The category of this notification, required for actionable notifications (optional).\n- `userInfo` : An object containing additional notification data (optional).\n  - `image` : It's useful if you need to diplay rich notification (optional).\n- `applicationIconBadgeNumber` The number to display as the app's icon badge. Setting the number to 0 removes the icon badge (optional).\n- `repeatInterval` : The interval to repeat as a string. Possible values: `minute`, `hour`, `day`, `week`, `month`, `year` (optional).\n\n---\n\n### `addNotificationRequest()`\n\n```jsx\nPushNotificationIOS.addNotificationRequest(request);\n```\n\nSends notificationRequest to notification center at specified firedate.\nFires immediately if firedate is not set.\n\n**Parameters:**\n\n| Name    | Type   | Required | Description |\n| ------- | ------ | -------- | ----------- |\n| request | object | Yes      | See below.  |\n\nrequest is an object containing:\n\n- `id`: Identifier of the notification. Required in order to be able to retrieve specific notification. (required)\n- `title`: A short description of the reason for the alert.\n- `subtitle`: A secondary description of the reason for the alert.\n- `body` : The message displayed in the notification alert.\n- `badge` The number to display as the app's icon badge. Setting the number to 0 removes the icon badge.\n- `fireDate` : The date and time when the system should deliver the notification.\n- `repeats` : Sets notification to repeat. Must be used with fireDate and repeatsComponent.\n- `repeatsComponent`: An object indicating which parts of fireDate should be repeated.\n- `sound` : The sound played when the notification is fired.\n- `category` : The category of this notification, required for actionable notifications.\n- `isSilent` : If true, the notification will appear without sound.\n- `isCritical` : If true, the notification sound be played even when the device is locked, muted, or has Do Not Disturb enabled.\n- `criticalSoundVolume` : A number between 0 and 1 for volume of critical notification. Default volume will be used if not specified.\n- `userInfo` : An object containing additional notification data.\n- `isTimeZoneAgnostic` : If true, fireDate adjusted automatically upon time zone changes (e.g. for an alarm clock).\n- `interruptionLevel` (iOS15+): A string specifying the interruption level. Valid values are `'active'`, `'passive'`, `'timeSensitive'`, or `'critical'`\n\nrequest.repeatsComponent is an object containing (each field is optional):\n\n- `year`: Will repeat every selected year in your fireDate.\n- `month`: Will repeat every selected month in your fireDate.\n- `day`: Will repeat every selected day in your fireDate.\n- `dayOfWeek`: Will repeat every selected day of the week in your fireDate.\n- `hour`: Will repeat every selected hour in your fireDate.\n- `minute`: Will repeat every selected minute in your fireDate.\n- `second`: Will repeat every selected second in your fireDate.\n\nFor example, let’s say you want to have a notification repeating every day at 23:54, starting tomorrow, you will use something like this:\n\n```javascript\nconst getCorrectDate = () => {\n  const date = new Date();\n  date.setDate(date.getDate() + 1);\n  date.setHours(23);\n  date.setMinutes(54);\n  return date;\n};\n\nPushNotificationIOS.addNotificationRequest({\n  fireDate: getCorrectDate(),\n  repeats: true,\n  repeatsComponent: {\n    hour: true,\n    minute: true,\n  },\n});\n```\n\nIf you want to repeat every time the clock reach 54 minutes (like 00:54, 01:54, and so on), just switch hour to false. Every field is used to indicate at what time the notification should be repeated, exactly like you could do on iOS.\n\n---\n\n### `setNotificationCategories()`\n\n```jsx\nPushNotificationIOS.setNotificationCategories(categories);\n```\n\nSets category for the notification center.\nAllows you to add specific actions for notification with specific category.\n\n**Parameters:**\n\n| Name       | Type     | Required | Description |\n| ---------- | -------- | -------- | ----------- |\n| categories | object[] | Yes      | See below.  |\n\n`category` is an object containing:\n\n- `id`: Identifier of the notification category. Notification with this category will have the specified actions. (required)\n- `actions`: An array of notification actions to be attached to the notification of category id.\n\n`action` is an object containing:\n\n- `id`: Identifier of Action. This value will be returned as actionIdentifier when notification is received.\n- `title`: Text to be shown on notification action button.\n- `options`: Options for notification action.\n  - `foreground`: If `true`, action will be displayed on notification.\n  - `destructive`: If `true`, action will be displayed as destructive notification.\n  - `authenticationRequired`: If `true`, action will only be displayed for authenticated user.\n- `textInput`: Option for textInput action. If textInput prop exists, then user action will automatically become a text input action. The text user inputs will be in the userText field of the received notification.\n  - `buttonTitle`: Text to be shown on button when user finishes text input. Default is \"Send\" or its equivalent word in user's language setting.\n  - `placeholder`: Placeholder for text input for text input action.\n\n---\n\n### `removePendingNotificationRequests()`\n\n```jsx\nPushNotificationIOS.removePendingNotificationRequests(identifiers);\n```\n\nRemoves the specified pending notifications from Notification Center\n\n**Parameters:**\n\n| Name        | Type     | Required | Description                        |\n| ----------- | -------- | -------- | ---------------------------------- |\n| identifiers | string[] | Yes      | Array of notification identifiers. |\n\n---\n\n### `removeAllPendingNotificationRequests()`\n\n```jsx\nPushNotificationIOS.removeAllPendingNotificationRequests();\n```\n\nRemoves all pending notification requests in the notification center.\n\n---\n\n### `removeAllDeliveredNotifications()`\n\n```jsx\nPushNotificationIOS.removeAllDeliveredNotifications();\n```\n\nRemove all delivered notifications from Notification Center\n\n---\n\n### `getDeliveredNotifications()`\n\n```jsx\nPushNotificationIOS.getDeliveredNotifications(callback);\n```\n\nProvides you with a list of the app’s notifications that are still displayed in Notification Center\n\n**Parameters:**\n\n| Name     | Type     | Required | Description                                                 |\n| -------- | -------- | -------- | ----------------------------------------------------------- |\n| callback | function | Yes      | Function which receive an array of delivered notifications. |\n\nA delivered notification is an object containing:\n\n- `identifier` : The identifier of this notification.\n- `title` : The title of this notification.\n- `body` : The body of this notification.\n- `category` : The category of this notification (optional).\n- `userInfo` : An object containing additional notification data (optional).\n- `thread-id` : The thread identifier of this notification, if has one.\n\n---\n\n### `removeDeliveredNotifications()`\n\n```jsx\nPushNotificationIOS.removeDeliveredNotifications(identifiers);\n```\n\nRemoves the specified delivered notifications from Notification Center\n\n**Parameters:**\n\n| Name        | Type     | Required | Description                        |\n| ----------- | -------- | -------- | ---------------------------------- |\n| identifiers | string[] | Yes      | Array of notification identifiers. |\n\n---\n\n### `setApplicationIconBadgeNumber()`\n\n```jsx\nPushNotificationIOS.setApplicationIconBadgeNumber(number);\n```\n\nSets the badge number for the app icon on the home screen\n\n**Parameters:**\n\n| Name   | Type   | Required | Description                    |\n| ------ | ------ | -------- | ------------------------------ |\n| number | number | Yes      | Badge number for the app icon. |\n\n---\n\n### `getApplicationIconBadgeNumber()`\n\n```jsx\nPushNotificationIOS.getApplicationIconBadgeNumber(callback);\n```\n\nGets the current badge number for the app icon on the home screen\n\n**Parameters:**\n\n| Name     | Type     | Required | Description                                              |\n| -------- | -------- | -------- | -------------------------------------------------------- |\n| callback | function | Yes      | A function that will be passed the current badge number. |\n\n---\n\n### `cancelLocalNotifications()`\n\n```jsx\nPushNotificationIOS.cancelLocalNotifications(userInfo);\n```\n\nCancel local notifications.\n\nOptionally restricts the set of canceled notifications to those notifications whose `userInfo` fields match the corresponding fields in the `userInfo` argument.\n\n**Parameters:**\n\n| Name     | Type   | Required | Description |\n| -------- | ------ | -------- | ----------- |\n| userInfo | object | No       |             |\n\n---\n\n### `getScheduledLocalNotifications()`\n\n```jsx\nPushNotificationIOS.getScheduledLocalNotifications(callback);\n```\n\nGets the local notifications that are currently scheduled.\n\n**Parameters:**\n\n| Name     | Type     | Required | Description                                                                        |\n| -------- | -------- | -------- | ---------------------------------------------------------------------------------- |\n| callback | function | Yes      | A function that will be passed an array of objects describing local notifications. |\n\n---\n\n### `addEventListener()`\n\n```jsx\nPushNotificationIOS.addEventListener(type, handler);\n```\n\nAttaches a listener to remote or local notification events while the app is running in the foreground or the background.\n\n**Parameters:**\n\n| Name    | Type     | Required | Description |\n| ------- | -------- | -------- | ----------- |\n| type    | string   | Yes      | Event type. |\n| handler | function | Yes      | Listener.   |\n\nValid events are:\n\n- `notification` : Fired when a remote notification is received. The handler will be invoked with an instance of `PushNotificationIOS`.\n- `localNotification` : Fired when a local notification is received. The handler will be invoked with an instance of `PushNotificationIOS`.\n- `register`: Fired when the user registers for remote notifications. The handler will be invoked with a hex string representing the deviceToken.\n- `registrationError`: Fired when the user fails to register for remote notifications. Typically occurs when APNS is having issues, or the device is a simulator. The handler will be invoked with {message: string, code: number, details: any}.\n\n---\n\n### `removeEventListener()`\n\n```jsx\nPushNotificationIOS.removeEventListener(type);\n```\n\nRemoves the event listener. Do this in `componentWillUnmount` to prevent memory leaks\n\n**Parameters:**\n\n| Name | Type   | Required | Description |\n| ---- | ------ | -------- | ----------- |\n| type | string | Yes      | Event type. |\n\n---\n\n### `requestPermissions()`\n\n```jsx\nPushNotificationIOS.requestPermissions([permissions]);\n```\n\nRequests notification permissions from iOS, prompting the user's dialog box. By default, it will request all notification permissions, but a subset of these can be requested by passing a map of requested permissions. The following permissions are supported:\n\n- `alert`\n- `badge`\n- `sound`\n- `critical`\n\n`critical` requires special entitlement that could be requested here: https://developer.apple.com/contact/request/notifications-critical-alerts-entitlement/\n\nIf a map is provided to the method, only the permissions with truthy values will be requested.\n\nThis method returns a promise that will resolve when the user accepts, rejects, or if the permissions were previously rejected. The promise resolves to the current state of the permission.\n\n**Parameters:**\n\n| Name        | Type  | Required | Description                     |\n| ----------- | ----- | -------- | ------------------------------- |\n| permissions | array | No       | alert, badge, sound or critical |\n\n---\n\n### `abandonPermissions()`\n\n```jsx\nPushNotificationIOS.abandonPermissions();\n```\n\nUnregister for all remote notifications received via Apple Push Notification service.\n\nYou should call this method in rare circumstances only, such as when a new version of the app removes support for all types of remote notifications. Users can temporarily prevent apps from receiving remote notifications through the Notifications section of the Settings app. Apps unregistered through this method can always re-register.\n\n---\n\n### `checkPermissions()`\n\n```jsx\nPushNotificationIOS.checkPermissions(callback);\n```\n\nSee what push permissions are currently enabled.\n\n**Parameters:**\n\n| Name     | Type     | Required | Description |\n| -------- | -------- | -------- | ----------- |\n| callback | function | Yes      | See below.  |\n\n`callback` will be invoked with a `permissions` object:\n\n- `alert` :boolean\n- `badge` :boolean\n- `sound` :boolean\n- `critical` :boolean\n- `lockScreen` :boolean\n- `notificationCenter` :boolean\n- `authorizationStatus` :AuthorizationStatus\n\n  For a list of possible values of `authorizationStatus`, see `PushNotificationIOS.AuthorizationStatus`. For their meanings, refer to https://developer.apple.com/documentation/usernotifications/unauthorizationstatus\n\n---\n\n### `getInitialNotification()`\n\n```jsx\nPushNotificationIOS.getInitialNotification();\n```\n\nThis method returns a promise. If the app was launched by a push notification, this promise resolves to an object of type `PushNotificationIOS`. Otherwise, it resolves to `null`.\n\n---\n\n### `constructor()`\n\n```jsx\nconstructor(nativeNotif);\n```\n\nYou will never need to instantiate `PushNotificationIOS` yourself. Listening to the `notification` event and invoking `getInitialNotification` is sufficient.\n\n---\n\n### `finish()`\n\n```jsx\nfinish(fetchResult);\n```\n\nThis method is available for remote notifications that have been received via: `application:didReceiveRemoteNotification:fetchCompletionHandler:` https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623013-application?language=objc\n\nCall this to execute when the remote notification handling is complete. When calling this block, pass in the fetch result value that best describes the results of your operation. You _must_ call this handler and should do so as soon as possible. For a list of possible values, see `PushNotificationIOS.FetchResult`.\n\nIf you do not call this method your background remote notifications could be throttled, to read more about it see the above documentation link.\n\n---\n\n### `getMessage()`\n\n```jsx\ngetMessage();\n```\n\nAn alias for `getAlert` to get the notification's main message string\n\n---\n\n### `getSound()`\n\n```jsx\ngetSound();\n```\n\nGets the sound string from the `aps` object\n\n---\n\n### `getCategory()`\n\n```jsx\ngetCategory();\n```\n\nGets the category string from the `aps` object\n\n---\n\n### `getAlert()`\n\n```jsx\ngetAlert();\n```\n\nGets the notification's main message from the `aps` object\n\n---\n\n### `getTitle()`\n\n```jsx\ngetTitle();\n```\n\nGets the notification's title from the `aps` object\n\n---\n\n### `getSubtitle()`\n\n```jsx\ngetSubtitle();\n```\n\nGets the notification's subtitle from the `aps` object\n\n---\n\n### `getContentAvailable()`\n\n```jsx\ngetContentAvailable();\n```\n\nGets the content-available number from the `aps` object\n\n---\n\n### `getBadgeCount()`\n\n```jsx\ngetBadgeCount();\n```\n\nGets the badge count number from the `aps` object\n\n---\n\n### `getData()`\n\n```jsx\ngetData();\n```\n\nGets the data object on the notification\n\n---\n\n### `getThreadID()`\n\n```jsx\ngetThreadID();\n```\n\nGets the thread ID on the notification\n\n[build-badge]: https://github.com/react-native-push-notification-ios/push-notification-ios/workflows/Build/badge.svg\n[build]: https://github.com/react-native-push-notification-ios/push-notification-ios/actions\n[version-badge]: https://img.shields.io/npm/v/@react-native-community/push-notification-ios.svg?style=flat-square\n[package]: https://www.npmjs.com/package/@react-native-community/push-notification-ios\n[license-badge]: https://img.shields.io/npm/l/@react-native-community/push-notification-ios.svg?style=flat-square\n[license]: https://opensource.org/licenses/MIT\n[lean-core-badge]: https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square\n[lean-core-issue]: https://github.com/facebook/react-native/issues/23313\n"
  },
  {
    "path": "RNCPushNotificationIOS.podspec",
    "content": "require \"json\"\n\npackage = JSON.parse(File.read(File.join(File.dirname(__FILE__), \"package.json\")))\n\nPod::Spec.new do |s|\n  # NPM package specification\n  \n  s.name           = 'RNCPushNotificationIOS'\n  s.version        = package['version']\n  s.summary        = package['description']\n  s.description    = package['description']\n  s.license        = package['license']\n  s.author         = package['author']\n  s.homepage       = package['homepage']\n  \n  s.source       = { :git => \"https://github.com/react-native-community/push-notification-ios\", :tag => \"v#{s.version}\" }\n  s.source_files = \"ios/*.{h,m}\"\n\n  s.platform     = :ios, \"10.0\"\n\n  s.dependency \"React-Core\"\n\nend\n"
  },
  {
    "path": "android/app/BUCK",
    "content": "# To learn about Buck see [Docs](https://buckbuild.com/).\n# To run your application with Buck:\n# - install Buck\n# - `npm start` - to start the packager\n# - `cd android`\n# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname \"CN=Android Debug,O=Android,C=US\"`\n# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck\n# - `buck install -r android/app` - compile, install and run application\n#\n\nload(\":build_defs.bzl\", \"create_aar_targets\", \"create_jar_targets\")\n\nlib_deps = []\n\ncreate_aar_targets(glob([\"libs/*.aar\"]))\n\ncreate_jar_targets(glob([\"libs/*.jar\"]))\n\nandroid_library(\n    name = \"all-libs\",\n    exported_deps = lib_deps,\n)\n\nandroid_library(\n    name = \"app-code\",\n    srcs = glob([\n        \"src/main/java/**/*.java\",\n    ]),\n    deps = [\n        \":all-libs\",\n        \":build_config\",\n        \":res\",\n    ],\n)\n\nandroid_build_config(\n    name = \"build_config\",\n    package = \"com.reactnativecommunity.pushnotificationios\",\n)\n\nandroid_resource(\n    name = \"res\",\n    package = \"com.reactnativecommunity.pushnotificationios\",\n    res = \"src/main/res\",\n)\n\nandroid_binary(\n    name = \"app\",\n    keystore = \"//android/keystores:debug\",\n    manifest = \"src/main/AndroidManifest.xml\",\n    package_type = \"debug\",\n    deps = [\n        \":app-code\",\n    ],\n)\n"
  },
  {
    "path": "android/app/build.gradle",
    "content": "apply plugin: \"com.android.application\"\n\nimport com.android.build.OutputFile\n\n/**\n * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets\n * and bundleReleaseJsAndAssets).\n * These basically call `react-native bundle` with the correct arguments during the Android build\n * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the\n * bundle directly from the development server. Below you can see all the possible configurations\n * and their defaults. If you decide to add a configuration block, make sure to add it before the\n * `apply from: \"../../node_modules/react-native/react.gradle\"` line.\n *\n * project.ext.react = [\n *   // the name of the generated asset file containing your JS bundle\n *   bundleAssetName: \"index.android.bundle\",\n *\n *   // the entry file for bundle generation\n *   entryFile: \"index.android.js\",\n *\n *   // whether to bundle JS and assets in debug mode\n *   bundleInDebug: false,\n *\n *   // whether to bundle JS and assets in release mode\n *   bundleInRelease: true,\n *\n *   // whether to bundle JS and assets in another build variant (if configured).\n *   // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants\n *   // The configuration property can be in the following formats\n *   //         'bundleIn${productFlavor}${buildType}'\n *   //         'bundleIn${buildType}'\n *   // bundleInFreeDebug: true,\n *   // bundleInPaidRelease: true,\n *   // bundleInBeta: true,\n *\n *   // whether to disable dev mode in custom build variants (by default only disabled in release)\n *   // for example: to disable dev mode in the staging build type (if configured)\n *   devDisabledInStaging: true,\n *   // The configuration property can be in the following formats\n *   //         'devDisabledIn${productFlavor}${buildType}'\n *   //         'devDisabledIn${buildType}'\n *\n *   // the root of your project, i.e. where \"package.json\" lives\n *   root: \"../../\",\n *\n *   // where to put the JS bundle asset in debug mode\n *   jsBundleDirDebug: \"$buildDir/intermediates/assets/debug\",\n *\n *   // where to put the JS bundle asset in release mode\n *   jsBundleDirRelease: \"$buildDir/intermediates/assets/release\",\n *\n *   // where to put drawable resources / React Native assets, e.g. the ones you use via\n *   // require('./image.png')), in debug mode\n *   resourcesDirDebug: \"$buildDir/intermediates/res/merged/debug\",\n *\n *   // where to put drawable resources / React Native assets, e.g. the ones you use via\n *   // require('./image.png')), in release mode\n *   resourcesDirRelease: \"$buildDir/intermediates/res/merged/release\",\n *\n *   // by default the gradle tasks are skipped if none of the JS files or assets change; this means\n *   // that we don't look at files in android/ or ios/ to determine whether the tasks are up to\n *   // date; if you have any other folders that you want to ignore for performance reasons (gradle\n *   // indexes the entire tree), add them here. Alternatively, if you have JS files in android/\n *   // for example, you might want to remove it from here.\n *   inputExcludes: [\"android/**\", \"ios/**\"],\n *\n *   // override which node gets called and with what additional arguments\n *   nodeExecutableAndArgs: [\"node\"],\n *\n *   // supply additional arguments to the packager\n *   extraPackagerArgs: []\n * ]\n */\n\nproject.ext.react = [\n    entryFile: \"index.js\"\n]\n\napply from: \"../../node_modules/react-native/react.gradle\"\n\n/**\n * Set this to true to create two separate APKs instead of one:\n *   - An APK that only works on ARM devices\n *   - An APK that only works on x86 devices\n * The advantage is the size of the APK is reduced by about 4MB.\n * Upload all the APKs to the Play Store and people will download\n * the correct one based on the CPU architecture of their device.\n */\ndef enableSeparateBuildPerCPUArchitecture = false\n\n/**\n * Run Proguard to shrink the Java bytecode in release builds.\n */\ndef enableProguardInReleaseBuilds = false\n\nandroid {\n    compileSdkVersion rootProject.ext.compileSdkVersion\n    buildToolsVersion rootProject.ext.buildToolsVersion\n\n    defaultConfig {\n        applicationId \"com.reactnativecommunity.pushnotificationios\"\n        minSdkVersion rootProject.ext.minSdkVersion\n        targetSdkVersion rootProject.ext.targetSdkVersion\n        versionCode 1\n        versionName \"1.0\"\n    }\n    splits {\n        abi {\n            reset()\n            enable enableSeparateBuildPerCPUArchitecture\n            universalApk false  // If true, also generate a universal APK\n            include \"armeabi-v7a\", \"x86\", \"arm64-v8a\"\n        }\n    }\n    buildTypes {\n        release {\n            minifyEnabled enableProguardInReleaseBuilds\n            proguardFiles getDefaultProguardFile(\"proguard-android.txt\"), \"proguard-rules.pro\"\n        }\n    }\n    // applicationVariants are e.g. debug, release\n    applicationVariants.all { variant ->\n        variant.outputs.each { output ->\n            // For each separate APK per architecture, set a unique version code as described here:\n            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits\n            def versionCodes = [\"armeabi-v7a\":1, \"x86\":2, \"arm64-v8a\": 3]\n            def abi = output.getFilter(OutputFile.ABI)\n            if (abi != null) {  // null for the universal-debug, universal-release variants\n                output.versionCodeOverride =\n                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode\n            }\n        }\n    }\n}\n\ndependencies {\n    implementation fileTree(dir: \"libs\", include: [\"*.jar\"])\n    implementation \"com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}\"\n    implementation \"com.facebook.react:react-native:+\"  // From node_modules\n}\n\n// Run this once to be able to run the application with BUCK\n// puts all compile dependencies into folder libs for BUCK to use\ntask copyDownloadableDepsToLibs(type: Copy) {\n    from configurations.compile\n    into 'libs'\n}\n"
  },
  {
    "path": "android/app/build_defs.bzl",
    "content": "\"\"\"Helper definitions to glob .aar and .jar targets\"\"\"\n\ndef create_aar_targets(aarfiles):\n    for aarfile in aarfiles:\n        name = \"aars__\" + aarfile[aarfile.rindex(\"/\") + 1:aarfile.rindex(\".aar\")]\n        lib_deps.append(\":\" + name)\n        android_prebuilt_aar(\n            name = name,\n            aar = aarfile,\n        )\n\ndef create_jar_targets(jarfiles):\n    for jarfile in jarfiles:\n        name = \"jars__\" + jarfile[jarfile.rindex(\"/\") + 1:jarfile.rindex(\".jar\")]\n        lib_deps.append(\":\" + name)\n        prebuilt_jar(\n            name = name,\n            binary_jar = jarfile,\n        )\n"
  },
  {
    "path": "android/app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the proguardFiles\n# directive in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n"
  },
  {
    "path": "android/app/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    package=\"com.reactnativecommunity.pushnotificationios\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n    <uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>\n\n    <application\n      android:name=\".MainApplication\"\n      android:label=\"@string/app_name\"\n      android:icon=\"@mipmap/ic_launcher\"\n      android:roundIcon=\"@mipmap/ic_launcher_round\"\n      android:allowBackup=\"false\"\n      android:theme=\"@style/AppTheme\">\n      <activity\n        android:name=\".MainActivity\"\n        android:label=\"@string/app_name\"\n        android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize\"\n        android:windowSoftInputMode=\"adjustResize\">\n        <intent-filter>\n            <action android:name=\"android.intent.action.MAIN\" />\n            <category android:name=\"android.intent.category.LAUNCHER\" />\n        </intent-filter>\n      </activity>\n      <activity android:name=\"com.facebook.react.devsupport.DevSettingsActivity\" />\n    </application>\n\n</manifest>\n"
  },
  {
    "path": "android/app/src/main/java/com/pushnotificationios/MainActivity.java",
    "content": "package com.reactnativecommunity.pushnotificationios;\n\nimport com.facebook.react.ReactActivity;\n\npublic class MainActivity extends ReactActivity {\n\n    /**\n     * Returns the name of the main component registered from JavaScript.\n     * This is used to schedule rendering of the component.\n     */\n    @Override\n    protected String getMainComponentName() {\n        return \"PushNotificationIOS\";\n    }\n}\n"
  },
  {
    "path": "android/app/src/main/java/com/pushnotificationios/MainApplication.java",
    "content": "package com.reactnativecommunity.pushnotificationios;\n\nimport android.app.Application;\n\nimport com.facebook.react.ReactApplication;\nimport com.facebook.react.ReactNativeHost;\nimport com.facebook.react.ReactPackage;\nimport com.facebook.react.shell.MainReactPackage;\nimport com.facebook.soloader.SoLoader;\n\nimport java.util.Arrays;\nimport java.util.List;\n\npublic class MainApplication extends Application implements ReactApplication {\n\n  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {\n    @Override\n    public boolean getUseDeveloperSupport() {\n      return BuildConfig.DEBUG;\n    }\n\n    @Override\n    protected List<ReactPackage> getPackages() {\n      return Arrays.<ReactPackage>asList(\n          new MainReactPackage()\n      );\n    }\n\n    @Override\n    protected String getJSMainModuleName() {\n      return \"index\";\n    }\n  };\n\n  @Override\n  public ReactNativeHost getReactNativeHost() {\n    return mReactNativeHost;\n  }\n\n  @Override\n  public void onCreate() {\n    super.onCreate();\n    SoLoader.init(this, /* native exopackage */ false);\n  }\n}\n"
  },
  {
    "path": "android/app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">PushNotificationIOS</string>\n</resources>\n"
  },
  {
    "path": "android/app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light.NoActionBar\">\n        <!-- Customize your theme here. -->\n    </style>\n\n</resources>\n"
  },
  {
    "path": "android/build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    ext {\n        buildToolsVersion = \"28.0.2\"\n        minSdkVersion = 16\n        compileSdkVersion = 28\n        targetSdkVersion = 27\n        supportLibVersion = \"28.0.0\"\n    }\n    repositories {\n        google()\n        mavenCentral()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.2.1'\n\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        mavenLocal()\n        google()\n        mavenCentral()\n        maven {\n            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm\n            url \"$rootDir/../node_modules/react-native/android\"\n        }\n    }\n}\n\n\ntask wrapper(type: Wrapper) {\n    gradleVersion = '4.7'\n    distributionUrl = distributionUrl.replace(\"bin\", \"all\")\n}\n"
  },
  {
    "path": "android/gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.7-all.zip\n"
  },
  {
    "path": "android/gradle.properties",
    "content": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\n# Default value: -Xmx10248m -XX:MaxPermSize=256m\n# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8\n\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n"
  },
  {
    "path": "android/gradlew",
    "content": "#!/usr/bin/env sh\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=$(save \"$@\")\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\n# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong\nif [ \"$(uname)\" = \"Darwin\" ] && [ \"$HOME\" = \"$PWD\" ]; then\n  cd \"$(dirname \"$0\")\"\nfi\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "android/gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto init\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:init\r\n@rem Get command-line arguments, handling Windows variants\r\n\r\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\r\n\r\n:win9xME_args\r\n@rem Slurp the command line arguments.\r\nset CMD_LINE_ARGS=\r\nset _SKIP=2\r\n\r\n:win9xME_args_slurp\r\nif \"x%~1\" == \"x\" goto execute\r\n\r\nset CMD_LINE_ARGS=%*\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "android/keystores/BUCK",
    "content": "keystore(\n    name = \"debug\",\n    properties = \"debug.keystore.properties\",\n    store = \"debug.keystore\",\n    visibility = [\n        \"PUBLIC\",\n    ],\n)\n"
  },
  {
    "path": "android/keystores/debug.keystore.properties",
    "content": "key.store=debug.keystore\nkey.alias=androiddebugkey\nkey.store.password=android\nkey.alias.password=android\n"
  },
  {
    "path": "android/settings.gradle",
    "content": "rootProject.name = 'PushNotificationIOS'\n\ninclude ':app'\n"
  },
  {
    "path": "babel.config.js",
    "content": "module.exports = {\n  presets: ['module:metro-react-native-babel-preset'],\n  plugins: [\n    [\n      'module-resolver',\n      {\n        alias: {\n          '@react-native-community/push-notification-ios': './js',\n        },\n        cwd: 'babelrc',\n      },\n    ],\n  ],\n};\n"
  },
  {
    "path": "docs/manual-linking.md",
    "content": "# Manual linking\n\n- Add the `.xcodeproj` to your project\n```\nnode_modules/@react-native-community/push-notification-ios/ios/PushNotificationIOS.xcodeproj\n```\n\n- Add the following to `Link Binary With Libraries` phase\n```\nlibRNCPushNotificationIOS.a\n```\n\nMore info on manual linking, [here](https://reactnative.dev/docs/linking-libraries-ios).\n"
  },
  {
    "path": "example/.gitattributes",
    "content": "# Windows files should use crlf line endings\n# https://help.github.com/articles/dealing-with-line-endings/\n*.bat text eol=crlf\n"
  },
  {
    "path": "example/.gitignore",
    "content": "# OSX\n#\n.DS_Store\n\n# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n*.xccheckout\n*.moved-aside\nDerivedData\n*.hmap\n*.ipa\n*.xcuserstate\n\n# Android/IntelliJ\n#\nbuild/\n.idea\n.gradle\nlocal.properties\n*.iml\n\n# node.js\n#\nnode_modules/\nnpm-debug.log\nyarn-error.log\n\n# BUCK\nbuck-out/\n\\.buckd/\n*.keystore\n!debug.keystore\n\n# fastlane\n#\n# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the\n# screenshots whenever they are needed.\n# For more information about the recommended setup visit:\n# https://docs.fastlane.tools/best-practices/source-control/\n\n*/fastlane/report.xml\n*/fastlane/Preview.html\n*/fastlane/screenshots\n\n# Bundle artifact\n*.jsbundle\n\n# CocoaPods\n/ios/Pods/\n"
  },
  {
    "path": "example/.watchmanconfig",
    "content": "{}"
  },
  {
    "path": "example/App.js",
    "content": "/**\n * Sample React Native App\n * https://github.com/facebook/react-native\n *\n * @flow\n */\n\nimport * as React from 'react';\nimport {useState, useEffect} from 'react';\nimport {\n  Alert,\n  StyleSheet,\n  Text,\n  Pressable,\n  ScrollView,\n  View,\n  DeviceEventEmitter,\n  SafeAreaView,\n} from 'react-native';\nimport PushNotificationIOS from '../js';\n\ntype ButtonProps = {|\n  onPress: () => void | Promise<void>,\n  label: string,\n|};\n\nconst Button: React.StatelessFunctionalComponent<ButtonProps> = ({\n  onPress,\n  label,\n}) => {\n  return (\n    /** $FlowFixMe */\n    <Pressable style={styles.button} onPress={onPress}>\n      <Text style={styles.buttonLabel}>{label}</Text>\n    </Pressable>\n  );\n};\n\nexport const App = (): React.Node => {\n  const [permissions, setPermissions] = useState({});\n\n  useEffect(() => {\n    PushNotificationIOS.addEventListener('register', onRegistered);\n    PushNotificationIOS.addEventListener(\n      'registrationError',\n      onRegistrationError,\n    );\n    PushNotificationIOS.addEventListener('notification', onRemoteNotification);\n    PushNotificationIOS.addEventListener(\n      'localNotification',\n      onLocalNotification,\n    );\n\n    PushNotificationIOS.requestPermissions({\n      alert: true,\n      badge: true,\n      sound: true,\n      critical: true,\n    }).then(\n      (data) => {\n        console.log('PushNotificationIOS.requestPermissions', data);\n      },\n      (data) => {\n        console.log('PushNotificationIOS.requestPermissions failed', data);\n      },\n    );\n\n    return () => {\n      PushNotificationIOS.removeEventListener('register');\n      PushNotificationIOS.removeEventListener('registrationError');\n      PushNotificationIOS.removeEventListener('notification');\n      PushNotificationIOS.removeEventListener('localNotification');\n    };\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const sendNotification = () => {\n    DeviceEventEmitter.emit('remoteNotificationReceived', {\n      remote: true,\n      aps: {\n        alert: {title: 'title', subtitle: 'subtitle', body: 'body'},\n        badge: 1,\n        sound: 'default',\n        category: 'REACT_NATIVE',\n        'content-available': 1,\n        'mutable-content': 1,\n      },\n    });\n  };\n\n  const sendSilentNotification = () => {\n    DeviceEventEmitter.emit('remoteNotificationReceived', {\n      remote: true,\n      aps: {\n        category: 'REACT_NATIVE',\n        'content-available': 1,\n      },\n    });\n  };\n\n  const sendLocalNotification = () => {\n    PushNotificationIOS.presentLocalNotification({\n      alertTitle: 'Sample Title',\n      alertBody: 'Sample local notification',\n      applicationIconBadgeNumber: 1,\n    });\n  };\n\n  const sendLocalNotificationWithSound = () => {\n    PushNotificationIOS.addNotificationRequest({\n      id: 'notificationWithSound',\n      title: 'Sample Title',\n      subtitle: 'Sample Subtitle',\n      body: 'Sample local notification with custom sound',\n      sound: 'customSound.wav',\n      badge: 1,\n    });\n  };\n\n  const scheduleLocalNotification = () => {\n    PushNotificationIOS.scheduleLocalNotification({\n      alertBody: 'Test Local Notification',\n      fireDate: new Date(new Date().valueOf() + 2000).toISOString(),\n    });\n  };\n\n  const addNotificationRequest = () => {\n    PushNotificationIOS.addNotificationRequest({\n      id: 'test',\n      title: 'title',\n      subtitle: 'subtitle',\n      body: 'body',\n      category: 'test',\n      threadId: 'thread-id',\n      fireDate: new Date(new Date().valueOf() + 2000),\n      repeats: true,\n      userInfo: {\n        image: 'https://www.github.com/Naturalclar.png',\n      },\n    });\n  };\n\n  const addCriticalNotificationRequest = () => {\n    PushNotificationIOS.addNotificationRequest({\n      id: 'critical',\n      title: 'Critical Alert',\n      subtitle: 'subtitle',\n      body: 'This is a critical alert',\n      category: 'test',\n      threadId: 'thread-id',\n      isCritical: true,\n      fireDate: new Date(new Date().valueOf() + 2000),\n      repeats: true,\n    });\n  };\n\n  const addMultipleRequests = () => {\n    PushNotificationIOS.addNotificationRequest({\n      id: 'test-1',\n      title: 'First',\n      subtitle: 'subtitle',\n      body: 'First Notification out of 3',\n      category: 'test',\n      threadId: 'thread-id',\n      fireDate: new Date(new Date().valueOf() + 10000),\n      repeats: true,\n    });\n\n    PushNotificationIOS.addNotificationRequest({\n      id: 'test-2',\n      title: 'Second',\n      subtitle: 'subtitle',\n      body: 'Second Notification out of 3',\n      category: 'test',\n      threadId: 'thread-id',\n      fireDate: new Date(new Date().valueOf() + 12000),\n      repeats: true,\n    });\n\n    PushNotificationIOS.addNotificationRequest({\n      id: 'test-3',\n      title: 'Third',\n      subtitle: 'subtitle',\n      body: 'Third Notification out of 3',\n      category: 'test',\n      threadId: 'thread-id',\n      fireDate: new Date(new Date().valueOf() + 14000),\n      repeats: true,\n    });\n  };\n\n  const getPendingNotificationRequests = () => {\n    PushNotificationIOS.getPendingNotificationRequests((requests) => {\n      Alert.alert('Push Notification Received', JSON.stringify(requests), [\n        {\n          text: 'Dismiss',\n          onPress: null,\n        },\n      ]);\n    });\n  };\n\n  const setNotificationCategories = async () => {\n    PushNotificationIOS.setNotificationCategories([\n      {\n        id: 'test',\n        actions: [\n          {id: 'open', title: 'Open', options: {foreground: true}},\n          {\n            id: 'ignore',\n            title: 'Desruptive',\n            options: {foreground: true, destructive: true},\n          },\n          {\n            id: 'text',\n            title: 'Text Input',\n            options: {foreground: true},\n            textInput: {buttonTitle: 'Send'},\n          },\n        ],\n      },\n    ]);\n    Alert.alert(\n      'setNotificationCategories',\n      `Set notification category complete`,\n      [\n        {\n          text: 'Dismiss',\n          onPress: null,\n        },\n      ],\n    );\n  };\n\n  const removeAllPendingNotificationRequests = () => {\n    PushNotificationIOS.removeAllPendingNotificationRequests();\n  };\n\n  const removePendingNotificationRequests = () => {\n    PushNotificationIOS.removePendingNotificationRequests(['test-1', 'test-2']);\n  };\n\n  const onRegistered = (deviceToken) => {\n    Alert.alert('Registered For Remote Push', `Device Token: ${deviceToken}`, [\n      {\n        text: 'Dismiss',\n        onPress: null,\n      },\n    ]);\n  };\n\n  const onRegistrationError = (error) => {\n    Alert.alert(\n      'Failed To Register For Remote Push',\n      `Error (${error.code}): ${error.message}`,\n      [\n        {\n          text: 'Dismiss',\n          onPress: null,\n        },\n      ],\n    );\n  };\n\n  const onRemoteNotification = (notification) => {\n    const isClicked = notification.getData().userInteraction === 1;\n\n    const result = `\n      Title:  ${notification.getTitle()};\\n\n      Subtitle:  ${notification.getSubtitle()};\\n\n      Message: ${notification.getMessage()};\\n\n      badge: ${notification.getBadgeCount()};\\n\n      sound: ${notification.getSound()};\\n\n      category: ${notification.getCategory()};\\n\n      content-available: ${notification.getContentAvailable()};\\n\n      Notification is clicked: ${String(isClicked)}.`;\n\n    if (notification.getTitle() == undefined) {\n      Alert.alert('Silent push notification Received', result, [\n        {\n          text: 'Send local push',\n          onPress: sendLocalNotification,\n        },\n      ]);\n    } else {\n      Alert.alert('Push Notification Received', result, [\n        {\n          text: 'Dismiss',\n          onPress: null,\n        },\n      ]);\n    }\n    notification.finish('UIBackgroundFetchResultNoData')\n  };\n\n  const onLocalNotification = (notification) => {\n    const isClicked = notification.getData().userInteraction === 1;\n\n    Alert.alert(\n      'Local Notification Received',\n      `Alert title:  ${notification.getTitle()},\n      Alert subtitle:  ${notification.getSubtitle()},\n      Alert message:  ${notification.getMessage()},\n      Badge: ${notification.getBadgeCount()},\n      Sound: ${notification.getSound()},\n      Thread Id:  ${notification.getThreadID()},\n      Action Id:  ${notification.getActionIdentifier()},\n      User Text:  ${notification.getUserText()},\n      Notification is clicked: ${String(isClicked)}.`,\n      [\n        {\n          text: 'Dismiss',\n          onPress: null,\n        },\n      ],\n    );\n  };\n\n  const showPermissions = () => {\n    PushNotificationIOS.checkPermissions((permissions) => {\n      setPermissions({permissions});\n    });\n  };\n\n  return (\n    <View style={[styles.flex, styles.background]}>\n      <SafeAreaView style={styles.flex}>\n        <ScrollView contentContainerStyle={styles.container}>\n          <Button onPress={sendNotification} label=\"Send fake notification\" />\n          <Button\n            onPress={sendLocalNotification}\n            label=\"Send fake local notification\"\n          />\n          <Button\n            onPress={sendLocalNotificationWithSound}\n            label=\"Send fake local notification with custom sound\"\n          />\n          <Button\n            onPress={scheduleLocalNotification}\n            label=\"Schedule fake local notification\"\n          />\n          <Button\n            onPress={addNotificationRequest}\n            label=\"Add Notification Request\"\n          />\n          <Button\n            onPress={addCriticalNotificationRequest}\n            label=\"Add Critical Notification Request (only works with Critical Notification entitlement)\"\n          />\n          <Button\n            onPress={addMultipleRequests}\n            label=\"Add Multiple Notification Requests\"\n          />\n          <Button\n            onPress={setNotificationCategories}\n            label=\"Set notification categories\"\n          />\n          <Button\n            onPress={removePendingNotificationRequests}\n            label=\"Remove Partial Pending Notification Requests\"\n          />\n          <Button\n            onPress={removeAllPendingNotificationRequests}\n            label=\"Remove All Pending Notification Requests\"\n          />\n          <Button\n            onPress={sendSilentNotification}\n            label=\"Send fake silent notification\"\n          />\n\n          <Button\n            onPress={() =>\n              PushNotificationIOS.setApplicationIconBadgeNumber(42)\n            }\n            label=\"Set app's icon badge to 42\"\n          />\n          <Button\n            onPress={() => PushNotificationIOS.setApplicationIconBadgeNumber(0)}\n            label=\"Clear app's icon badge\"\n          />\n          <Button\n            onPress={getPendingNotificationRequests}\n            label=\"Get Pending Notification Requests\"\n          />\n          <View>\n            <Button\n              onPress={showPermissions}\n              label=\"Show enabled permissions\"\n            />\n            <Text>{JSON.stringify(permissions)}</Text>\n          </View>\n        </ScrollView>\n      </SafeAreaView>\n    </View>\n  );\n};\n\nconst styles = StyleSheet.create({\n  background: {\n    backgroundColor: '#F5FCFF',\n  },\n  flex: {flex: 1},\n  container: {\n    flexGrow: 1,\n    backgroundColor: '#F5FCFF',\n  },\n  button: {\n    padding: 10,\n    alignItems: 'center',\n    justifyContent: 'center',\n  },\n  buttonLabel: {\n    color: 'blue',\n  },\n});\n"
  },
  {
    "path": "example/android/app/_BUCK",
    "content": "# To learn about Buck see [Docs](https://buckbuild.com/).\n# To run your application with Buck:\n# - install Buck\n# - `npm start` - to start the packager\n# - `cd android`\n# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname \"CN=Android Debug,O=Android,C=US\"`\n# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck\n# - `buck install -r android/app` - compile, install and run application\n#\n\nload(\":build_defs.bzl\", \"create_aar_targets\", \"create_jar_targets\")\n\nlib_deps = []\n\ncreate_aar_targets(glob([\"libs/*.aar\"]))\n\ncreate_jar_targets(glob([\"libs/*.jar\"]))\n\nandroid_library(\n    name = \"all-libs\",\n    exported_deps = lib_deps,\n)\n\nandroid_library(\n    name = \"app-code\",\n    srcs = glob([\n        \"src/main/java/**/*.java\",\n    ]),\n    deps = [\n        \":all-libs\",\n        \":build_config\",\n        \":res\",\n    ],\n)\n\nandroid_build_config(\n    name = \"build_config\",\n    package = \"com.example\",\n)\n\nandroid_resource(\n    name = \"res\",\n    package = \"com.example\",\n    res = \"src/main/res\",\n)\n\nandroid_binary(\n    name = \"app\",\n    keystore = \"//android/keystores:debug\",\n    manifest = \"src/main/AndroidManifest.xml\",\n    package_type = \"debug\",\n    deps = [\n        \":app-code\",\n    ],\n)\n"
  },
  {
    "path": "example/android/app/build.gradle",
    "content": "apply plugin: \"com.android.application\"\n\nimport com.android.build.OutputFile\n\n/**\n * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets\n * and bundleReleaseJsAndAssets).\n * These basically call `react-native bundle` with the correct arguments during the Android build\n * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the\n * bundle directly from the development server. Below you can see all the possible configurations\n * and their defaults. If you decide to add a configuration block, make sure to add it before the\n * `apply from: \"../../node_modules/react-native/react.gradle\"` line.\n *\n * project.ext.react = [\n *   // the name of the generated asset file containing your JS bundle\n *   bundleAssetName: \"index.android.bundle\",\n *\n *   // the entry file for bundle generation. If none specified and\n *   // \"index.android.js\" exists, it will be used. Otherwise \"index.js\" is\n *   // default. Can be overridden with ENTRY_FILE environment variable.\n *   entryFile: \"index.android.js\",\n *\n *   // https://reactnative.dev/docs/performance#enable-the-ram-format\n *   bundleCommand: \"ram-bundle\",\n *\n *   // whether to bundle JS and assets in debug mode\n *   bundleInDebug: false,\n *\n *   // whether to bundle JS and assets in release mode\n *   bundleInRelease: true,\n *\n *   // whether to bundle JS and assets in another build variant (if configured).\n *   // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants\n *   // The configuration property can be in the following formats\n *   //         'bundleIn${productFlavor}${buildType}'\n *   //         'bundleIn${buildType}'\n *   // bundleInFreeDebug: true,\n *   // bundleInPaidRelease: true,\n *   // bundleInBeta: true,\n *\n *   // whether to disable dev mode in custom build variants (by default only disabled in release)\n *   // for example: to disable dev mode in the staging build type (if configured)\n *   devDisabledInStaging: true,\n *   // The configuration property can be in the following formats\n *   //         'devDisabledIn${productFlavor}${buildType}'\n *   //         'devDisabledIn${buildType}'\n *\n *   // the root of your project, i.e. where \"package.json\" lives\n *   root: \"../../\",\n *\n *   // where to put the JS bundle asset in debug mode\n *   jsBundleDirDebug: \"$buildDir/intermediates/assets/debug\",\n *\n *   // where to put the JS bundle asset in release mode\n *   jsBundleDirRelease: \"$buildDir/intermediates/assets/release\",\n *\n *   // where to put drawable resources / React Native assets, e.g. the ones you use via\n *   // require('./image.png')), in debug mode\n *   resourcesDirDebug: \"$buildDir/intermediates/res/merged/debug\",\n *\n *   // where to put drawable resources / React Native assets, e.g. the ones you use via\n *   // require('./image.png')), in release mode\n *   resourcesDirRelease: \"$buildDir/intermediates/res/merged/release\",\n *\n *   // by default the gradle tasks are skipped if none of the JS files or assets change; this means\n *   // that we don't look at files in android/ or ios/ to determine whether the tasks are up to\n *   // date; if you have any other folders that you want to ignore for performance reasons (gradle\n *   // indexes the entire tree), add them here. Alternatively, if you have JS files in android/\n *   // for example, you might want to remove it from here.\n *   inputExcludes: [\"android/**\", \"ios/**\"],\n *\n *   // override which node gets called and with what additional arguments\n *   nodeExecutableAndArgs: [\"node\"],\n *\n *   // supply additional arguments to the packager\n *   extraPackagerArgs: []\n * ]\n */\n\nproject.ext.react = [\n    enableHermes: false,  // clean and rebuild if changing\n]\n\napply from: \"../../node_modules/react-native/react.gradle\"\n\n/**\n * Set this to true to create two separate APKs instead of one:\n *   - An APK that only works on ARM devices\n *   - An APK that only works on x86 devices\n * The advantage is the size of the APK is reduced by about 4MB.\n * Upload all the APKs to the Play Store and people will download\n * the correct one based on the CPU architecture of their device.\n */\ndef enableSeparateBuildPerCPUArchitecture = false\n\n/**\n * Run Proguard to shrink the Java bytecode in release builds.\n */\ndef enableProguardInReleaseBuilds = false\n\n/**\n * The preferred build flavor of JavaScriptCore.\n *\n * For example, to use the international variant, you can use:\n * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`\n *\n * The international variant includes ICU i18n library and necessary data\n * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that\n * give correct results when using with locales other than en-US.  Note that\n * this variant is about 6MiB larger per architecture than default.\n */\ndef jscFlavor = 'org.webkit:android-jsc:+'\n\n/**\n * Whether to enable the Hermes VM.\n *\n * This should be set on project.ext.react and mirrored here.  If it is not set\n * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode\n * and the benefits of using Hermes will therefore be sharply reduced.\n */\ndef enableHermes = project.ext.react.get(\"enableHermes\", false);\n\nandroid {\n    ndkVersion rootProject.ext.ndkVersion\n\n    compileSdkVersion rootProject.ext.compileSdkVersion\n\n    compileOptions {\n        sourceCompatibility JavaVersion.VERSION_1_8\n        targetCompatibility JavaVersion.VERSION_1_8\n    }\n\n    defaultConfig {\n        applicationId \"com.example\"\n        minSdkVersion rootProject.ext.minSdkVersion\n        targetSdkVersion rootProject.ext.targetSdkVersion\n        versionCode 1\n        versionName \"1.0\"\n    }\n    splits {\n        abi {\n            reset()\n            enable enableSeparateBuildPerCPUArchitecture\n            universalApk false  // If true, also generate a universal APK\n            include \"armeabi-v7a\", \"x86\", \"arm64-v8a\", \"x86_64\"\n        }\n    }\n    signingConfigs {\n        debug {\n            storeFile file('debug.keystore')\n            storePassword 'android'\n            keyAlias 'androiddebugkey'\n            keyPassword 'android'\n        }\n    }\n    buildTypes {\n        debug {\n            signingConfig signingConfigs.debug\n        }\n        release {\n            // Caution! In production, you need to generate your own keystore file.\n            // see https://reactnative.dev/docs/signed-apk-android.\n            signingConfig signingConfigs.debug\n            minifyEnabled enableProguardInReleaseBuilds\n            proguardFiles getDefaultProguardFile(\"proguard-android.txt\"), \"proguard-rules.pro\"\n        }\n    }\n\n    packagingOptions {\n        pickFirst \"lib/armeabi-v7a/libc++_shared.so\"\n        pickFirst \"lib/arm64-v8a/libc++_shared.so\"\n        pickFirst \"lib/x86/libc++_shared.so\"\n        pickFirst \"lib/x86_64/libc++_shared.so\"\n    }\n    // applicationVariants are e.g. debug, release\n    applicationVariants.all { variant ->\n        variant.outputs.each { output ->\n            // For each separate APK per architecture, set a unique version code as described here:\n            // https://developer.android.com/studio/build/configure-apk-splits.html\n            // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.\n            def versionCodes = [\"armeabi-v7a\": 1, \"x86\": 2, \"arm64-v8a\": 3, \"x86_64\": 4]\n            def abi = output.getFilter(OutputFile.ABI)\n            if (abi != null) {  // null for the universal-debug, universal-release variants\n                output.versionCodeOverride =\n                        defaultConfig.versionCode * 1000 + versionCodes.get(abi)\n            }\n\n        }\n    }\n}\n\ndependencies {\n    implementation fileTree(dir: \"libs\", include: [\"*.jar\"])\n    //noinspection GradleDynamicVersion\n    implementation \"com.facebook.react:react-native:+\"  // From node_modules\n\n    implementation \"androidx.swiperefreshlayout:swiperefreshlayout:1.0.0\"\n\n    debugImplementation(\"com.facebook.flipper:flipper:${FLIPPER_VERSION}\") {\n      exclude group:'com.facebook.fbjni'\n    }\n\n    debugImplementation(\"com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}\") {\n        exclude group:'com.facebook.flipper'\n        exclude group:'com.squareup.okhttp3', module:'okhttp'\n    }\n\n    debugImplementation(\"com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}\") {\n        exclude group:'com.facebook.flipper'\n    }\n\n    if (enableHermes) {\n        def hermesPath = \"../../node_modules/hermes-engine/android/\";\n        debugImplementation files(hermesPath + \"hermes-debug.aar\")\n        releaseImplementation files(hermesPath + \"hermes-release.aar\")\n    } else {\n        implementation jscFlavor\n    }\n}\n\n// Run this once to be able to run the application with BUCK\n// puts all compile dependencies into folder libs for BUCK to use\ntask copyDownloadableDepsToLibs(type: Copy) {\n    from configurations.compile\n    into 'libs'\n}\n\napply from: file(\"../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle\"); applyNativeModulesAppBuildGradle(project)\n"
  },
  {
    "path": "example/android/app/build_defs.bzl",
    "content": "\"\"\"Helper definitions to glob .aar and .jar targets\"\"\"\n\ndef create_aar_targets(aarfiles):\n    for aarfile in aarfiles:\n        name = \"aars__\" + aarfile[aarfile.rindex(\"/\") + 1:aarfile.rindex(\".aar\")]\n        lib_deps.append(\":\" + name)\n        android_prebuilt_aar(\n            name = name,\n            aar = aarfile,\n        )\n\ndef create_jar_targets(jarfiles):\n    for jarfile in jarfiles:\n        name = \"jars__\" + jarfile[jarfile.rindex(\"/\") + 1:jarfile.rindex(\".jar\")]\n        lib_deps.append(\":\" + name)\n        prebuilt_jar(\n            name = name,\n            binary_jar = jarfile,\n        )\n"
  },
  {
    "path": "example/android/app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# By default, the flags in this file are appended to flags specified\n# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt\n# You can edit the include path and order by changing the proguardFiles\n# directive in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# Add any project specific keep options here:\n"
  },
  {
    "path": "example/android/app/src/debug/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>\n\n    <application\n        android:usesCleartextTraffic=\"true\"\n        tools:targetApi=\"28\"\n        tools:ignore=\"GoogleAppIndexingWarning\">\n        <activity android:name=\"com.facebook.react.devsupport.DevSettingsActivity\" />\n    </application>\n</manifest>\n"
  },
  {
    "path": "example/android/app/src/debug/java/com/example/ReactNativeFlipper.java",
    "content": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * <p>This source code is licensed under the MIT license found in the LICENSE file in the root\n * directory of this source tree.\n */\npackage com.example;\n\nimport android.content.Context;\nimport com.facebook.flipper.android.AndroidFlipperClient;\nimport com.facebook.flipper.android.utils.FlipperUtils;\nimport com.facebook.flipper.core.FlipperClient;\nimport com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;\nimport com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;\nimport com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;\nimport com.facebook.flipper.plugins.inspector.DescriptorMapping;\nimport com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;\nimport com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;\nimport com.facebook.flipper.plugins.network.NetworkFlipperPlugin;\nimport com.facebook.flipper.plugins.react.ReactFlipperPlugin;\nimport com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;\nimport com.facebook.react.ReactInstanceManager;\nimport com.facebook.react.bridge.ReactContext;\nimport com.facebook.react.modules.network.NetworkingModule;\nimport okhttp3.OkHttpClient;\n\npublic class ReactNativeFlipper {\n  public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {\n    if (FlipperUtils.shouldEnableFlipper(context)) {\n      final FlipperClient client = AndroidFlipperClient.getInstance(context);\n\n      client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));\n      client.addPlugin(new ReactFlipperPlugin());\n      client.addPlugin(new DatabasesFlipperPlugin(context));\n      client.addPlugin(new SharedPreferencesFlipperPlugin(context));\n      client.addPlugin(CrashReporterPlugin.getInstance());\n\n      NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();\n      NetworkingModule.setCustomClientBuilder(\n          new NetworkingModule.CustomClientBuilder() {\n            @Override\n            public void apply(OkHttpClient.Builder builder) {\n              builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));\n            }\n          });\n      client.addPlugin(networkFlipperPlugin);\n      client.start();\n\n      // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized\n      // Hence we run if after all native modules have been initialized\n      ReactContext reactContext = reactInstanceManager.getCurrentReactContext();\n      if (reactContext == null) {\n        reactInstanceManager.addReactInstanceEventListener(\n            new ReactInstanceManager.ReactInstanceEventListener() {\n              @Override\n              public void onReactContextInitialized(ReactContext reactContext) {\n                reactInstanceManager.removeReactInstanceEventListener(this);\n                reactContext.runOnNativeModulesQueueThread(\n                    new Runnable() {\n                      @Override\n                      public void run() {\n                        client.addPlugin(new FrescoFlipperPlugin());\n                      }\n                    });\n              }\n            });\n      } else {\n        client.addPlugin(new FrescoFlipperPlugin());\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "example/android/app/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n  package=\"com.example\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n\n    <application\n      android:name=\".MainApplication\"\n      android:label=\"@string/app_name\"\n      android:icon=\"@mipmap/ic_launcher\"\n      android:roundIcon=\"@mipmap/ic_launcher_round\"\n      android:allowBackup=\"false\"\n      android:theme=\"@style/AppTheme\">\n      <activity\n        android:name=\".MainActivity\"\n        android:label=\"@string/app_name\"\n        android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize|uiMode\"\n        android:launchMode=\"singleTask\"\n        android:windowSoftInputMode=\"adjustResize\">\n        <intent-filter>\n            <action android:name=\"android.intent.action.MAIN\" />\n            <category android:name=\"android.intent.category.LAUNCHER\" />\n        </intent-filter>\n      </activity>\n    </application>\n</manifest>\n"
  },
  {
    "path": "example/android/app/src/main/java/com/example/MainActivity.java",
    "content": "package com.example;\n\nimport com.facebook.react.ReactActivity;\n\npublic class MainActivity extends ReactActivity {\n\n  /**\n   * Returns the name of the main component registered from JavaScript. This is used to schedule\n   * rendering of the component.\n   */\n  @Override\n  protected String getMainComponentName() {\n    return \"example\";\n  }\n}\n"
  },
  {
    "path": "example/android/app/src/main/java/com/example/MainApplication.java",
    "content": "package com.example;\n\nimport android.app.Application;\nimport android.content.Context;\nimport com.facebook.react.PackageList;\nimport com.facebook.react.ReactApplication;\nimport com.facebook.react.ReactInstanceManager;\nimport com.facebook.react.ReactNativeHost;\nimport com.facebook.react.ReactPackage;\nimport com.facebook.soloader.SoLoader;\nimport java.lang.reflect.InvocationTargetException;\nimport java.util.List;\n\npublic class MainApplication extends Application implements ReactApplication {\n\n  private final ReactNativeHost mReactNativeHost =\n      new ReactNativeHost(this) {\n        @Override\n        public boolean getUseDeveloperSupport() {\n          return BuildConfig.DEBUG;\n        }\n\n        @Override\n        protected List<ReactPackage> getPackages() {\n          @SuppressWarnings(\"UnnecessaryLocalVariable\")\n          List<ReactPackage> packages = new PackageList(this).getPackages();\n          // Packages that cannot be autolinked yet can be added manually here, for example:\n          // packages.add(new MyReactNativePackage());\n          return packages;\n        }\n\n        @Override\n        protected String getJSMainModuleName() {\n          return \"index\";\n        }\n      };\n\n  @Override\n  public ReactNativeHost getReactNativeHost() {\n    return mReactNativeHost;\n  }\n\n  @Override\n  public void onCreate() {\n    super.onCreate();\n    SoLoader.init(this, /* native exopackage */ false);\n    initializeFlipper(this, getReactNativeHost().getReactInstanceManager());\n  }\n\n  /**\n   * Loads Flipper in React Native templates. Call this in the onCreate method with something like\n   * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());\n   *\n   * @param context\n   * @param reactInstanceManager\n   */\n  private static void initializeFlipper(\n      Context context, ReactInstanceManager reactInstanceManager) {\n    if (BuildConfig.DEBUG) {\n      try {\n        /*\n         We use reflection here to pick up the class that initializes Flipper,\n        since Flipper library is not available in release mode\n        */\n        Class<?> aClass = Class.forName(\"com.example.ReactNativeFlipper\");\n        aClass\n            .getMethod(\"initializeFlipper\", Context.class, ReactInstanceManager.class)\n            .invoke(null, context, reactInstanceManager);\n      } catch (ClassNotFoundException e) {\n        e.printStackTrace();\n      } catch (NoSuchMethodException e) {\n        e.printStackTrace();\n      } catch (IllegalAccessException e) {\n        e.printStackTrace();\n      } catch (InvocationTargetException e) {\n        e.printStackTrace();\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "example/android/app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">example</string>\n</resources>\n"
  },
  {
    "path": "example/android/app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <!-- Base application theme. -->\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.DayNight.NoActionBar\">\n        <!-- Customize your theme here. -->\n        <item name=\"android:textColor\">#000000</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "example/android/build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    ext {\n        buildToolsVersion = \"29.0.3\"\n        minSdkVersion = 21\n        compileSdkVersion = 29\n        targetSdkVersion = 29\n        ndkVersion = \"20.1.5948944\"\n    }\n    repositories {\n        google()\n        mavenCentral()\n    }\n    dependencies {\n        classpath(\"com.android.tools.build:gradle:4.1.0\")\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        mavenLocal()\n        maven {\n            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm\n            url(\"$rootDir/../node_modules/react-native/android\")\n        }\n        maven {\n            // Android JSC is installed from npm\n            url(\"$rootDir/../node_modules/jsc-android/dist\")\n        }\n\n        google()\n        mavenCentral()\n    }\n}\n"
  },
  {
    "path": "example/android/gradle/wrapper/gradle-wrapper.properties",
    "content": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-6.7-all.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "example/android/gradle.properties",
    "content": "# Project-wide Gradle settings.\n\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\n# Default value: -Xmx10248m -XX:MaxPermSize=256m\n# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8\n\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n\n# AndroidX package structure to make it clearer which packages are bundled with the\n# Android operating system, and which are packaged with your app's APK\n# https://developer.android.com/topic/libraries/support-library/androidx-rn\nandroid.useAndroidX=true\n# Automatically convert third-party libraries to use AndroidX\nandroid.enableJetifier=true\n\n# Version of flipper SDK to use with React Native\nFLIPPER_VERSION=0.75.1\n"
  },
  {
    "path": "example/android/gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif [ \"$cygwin\" = \"true\" -o \"$msys\" = \"true\" ] ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=`expr $i + 1`\n    done\n    case $i in\n        0) set -- ;;\n        1) set -- \"$args0\" ;;\n        2) set -- \"$args0\" \"$args1\" ;;\n        3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=`save \"$@\"`\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "example/android/gradlew.bat",
    "content": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\r\n@rem you may not use this file except in compliance with the License.\r\n@rem You may obtain a copy of the License at\r\n@rem\r\n@rem      https://www.apache.org/licenses/LICENSE-2.0\r\n@rem\r\n@rem Unless required by applicable law or agreed to in writing, software\r\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\r\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n@rem See the License for the specific language governing permissions and\r\n@rem limitations under the License.\r\n@rem\r\n\r\n@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\r\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "example/android/settings.gradle",
    "content": "rootProject.name = 'example'\napply from: file(\"../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle\"); applyNativeModulesSettingsGradle(settings)\ninclude ':app'\n"
  },
  {
    "path": "example/app.json",
    "content": "{\n  \"name\": \"example\",\n  \"displayName\": \"example\"\n}"
  },
  {
    "path": "example/babel.config.js",
    "content": "module.exports = {\n  presets: ['module:metro-react-native-babel-preset'],\n};\n"
  },
  {
    "path": "example/ios/Podfile",
    "content": "require_relative '../../node_modules/react-native/scripts/react_native_pods'\nrequire_relative '../../node_modules/@react-native-community/cli-platform-ios/native_modules'\n\nplatform :ios, '10.0'\n\ntarget 'example' do\n  config = use_native_modules!\n  pod 'RNCPushNotificationIOS', :path => \"../../\"\n\n  use_react_native!(\n    :path => '../../node_modules/react-native', \n    # to enable hermes on iOS, change `false` to `true` and then install pods\n    :hermes_enabled => true\n  )\n\n  target 'exampleTests' do\n    inherit! :complete\n    # Pods for testing\n  end\n\n  # Enables Flipper.\n  #\n  # Note that if you have use_frameworks! enabled, Flipper will not work and\n  # you should disable the next line.\n  use_flipper!()\n\n  post_install do |installer|\n    react_native_post_install(installer)\n  end\nend"
  },
  {
    "path": "example/ios/example/AppDelegate.h",
    "content": "#import <UserNotifications/UNUserNotificationCenter.h>\n#import <React/RCTBridgeDelegate.h>\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>\n@property (nonatomic, strong) UIWindow *window;\n\n@end\n"
  },
  {
    "path": "example/ios/example/AppDelegate.m",
    "content": "#import \"AppDelegate.h\"\n\n#import <RNCPushNotificationIOS.h>\n#import <React/RCTBridge.h>\n#import <React/RCTBundleURLProvider.h>\n#import <React/RCTRootView.h>\n\n#ifdef FB_SONARKIT_ENABLED\n#import <FlipperKit/FlipperClient.h>\n#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>\n#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>\n#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>\n#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>\n#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>\n\nstatic void InitializeFlipper(UIApplication *application) {\n  FlipperClient *client = [FlipperClient sharedClient];\n  SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];\n  [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];\n  [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];\n  [client addPlugin:[FlipperKitReactPlugin new]];\n  [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];\n  [client start];\n}\n#endif\n\n@implementation AppDelegate\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n#ifdef FB_SONARKIT_ENABLED\n  InitializeFlipper(application);\n#endif\n\n  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];\n  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge\n                                                   moduleName:@\"example\"\n                                            initialProperties:nil];\n\n  if (@available(iOS 13.0, *)) {\n      rootView.backgroundColor = [UIColor systemBackgroundColor];\n  } else {\n      rootView.backgroundColor = [UIColor whiteColor];\n  }\n\n  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];\n  UIViewController *rootViewController = [UIViewController new];\n  rootViewController.view = rootView;\n  self.window.rootViewController = rootViewController;\n  [self.window makeKeyAndVisible];\n\n  // Define UNUserNotificationCenter\n  UNUserNotificationCenter *center =\n      [UNUserNotificationCenter currentNotificationCenter];\n  center.delegate = self;\n\n  return YES;\n}\n\n// Called when a notification is delivered to a foreground app.\n- (void)userNotificationCenter:(UNUserNotificationCenter *)center\n       willPresentNotification:(UNNotification *)notification\n         withCompletionHandler:\n             (void (^)(UNNotificationPresentationOptions options))\n                 completionHandler {\n  completionHandler(UNNotificationPresentationOptionSound | UNNotificationPresentationOptionBadge |\n                    UNNotificationPresentationOptionAlert);\n}\n\n// Required for the register event.\n- (void)application:(UIApplication *)application\n    didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {\n  [RNCPushNotificationIOS\n      didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];\n}\n// Required for the notification event. You must call the completion handler\n// after handling the remote notification.\n- (void)application:(UIApplication *)application\n    didReceiveRemoteNotification:(NSDictionary *)userInfo\n          fetchCompletionHandler:\n              (void (^)(UIBackgroundFetchResult))completionHandler {\n  [RNCPushNotificationIOS didReceiveRemoteNotification:userInfo\n                                fetchCompletionHandler:completionHandler];\n}\n// Required for the registrationError event.\n- (void)application:(UIApplication *)application\n    didFailToRegisterForRemoteNotificationsWithError:(NSError *)error {\n  [RNCPushNotificationIOS\n      didFailToRegisterForRemoteNotificationsWithError:error];\n}\n// Required for local notification tapped event\n- (void)userNotificationCenter:(UNUserNotificationCenter *)center\n    didReceiveNotificationResponse:(UNNotificationResponse *)response\n             withCompletionHandler:(void (^)(void))completionHandler {\n  [RNCPushNotificationIOS didReceiveNotificationResponse:response];\n  completionHandler();\n}\n\n- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge\n{\n#if DEBUG\n  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@\"index\" fallbackResource:nil];\n#else\n  return [[NSBundle mainBundle] URLForResource:@\"main\" withExtension:@\"jsbundle\"];\n#endif\n}\n\n@end\n"
  },
  {
    "path": "example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"60x60\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"60x60\"\n    },\n    {\n      \"idiom\" : \"ios-marketing\",\n      \"scale\" : \"1x\",\n      \"size\" : \"1024x1024\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "example/ios/example/Images.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "example/ios/example/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleDisplayName</key>\n\t<string>example</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>NSAppTransportSecurity</key>\n\t<dict>\n\t\t<key>NSAllowsArbitraryLoads</key>\n\t\t<true/>\n\t\t<key>NSExceptionDomains</key>\n\t\t<dict>\n\t\t\t<key>localhost</key>\n\t\t\t<dict>\n\t\t\t\t<key>NSExceptionAllowsInsecureHTTPLoads</key>\n\t\t\t\t<true/>\n\t\t\t</dict>\n\t\t</dict>\n\t</dict>\n\t<key>NSLocationWhenInUseUsageDescription</key>\n\t<string></string>\n\t<key>UIBackgroundModes</key>\n\t<array>\n\t\t<string>remote-notification</string>\n\t</array>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UIViewControllerBasedStatusBarAppearance</key>\n\t<false/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/example/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"15702\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" useSafeAreas=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <device id=\"retina4_7\" orientation=\"portrait\" appearance=\"light\"/>\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"15704\"/>\n        <capability name=\"Safe area layout guides\" minToolsVersion=\"9.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"example\" textAlignment=\"center\" lineBreakMode=\"middleTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"18\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GJd-Yh-RWb\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"202\" width=\"375\" height=\"43\"/>\n                                <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"36\"/>\n                                <nil key=\"highlightedColor\"/>\n                            </label>\n                            <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"Powered by React Native\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"9\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MN2-I3-ftu\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"626\" width=\"375\" height=\"21\"/>\n                                <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                <nil key=\"highlightedColor\"/>\n                            </label>\n                        </subviews>\n                        <color key=\"backgroundColor\" systemColor=\"systemBackgroundColor\" cocoaTouchSystemColor=\"whiteColor\"/>\n                        <constraints>\n                            <constraint firstItem=\"Bcu-3y-fUS\" firstAttribute=\"bottom\" secondItem=\"MN2-I3-ftu\" secondAttribute=\"bottom\" constant=\"20\" id=\"OZV-Vh-mqD\"/>\n                            <constraint firstItem=\"Bcu-3y-fUS\" firstAttribute=\"centerX\" secondItem=\"GJd-Yh-RWb\" secondAttribute=\"centerX\" id=\"Q3B-4B-g5h\"/>\n                            <constraint firstItem=\"MN2-I3-ftu\" firstAttribute=\"centerX\" secondItem=\"Bcu-3y-fUS\" secondAttribute=\"centerX\" id=\"akx-eg-2ui\"/>\n                            <constraint firstItem=\"MN2-I3-ftu\" firstAttribute=\"leading\" secondItem=\"Bcu-3y-fUS\" secondAttribute=\"leading\" id=\"i1E-0Y-4RG\"/>\n                            <constraint firstItem=\"GJd-Yh-RWb\" firstAttribute=\"centerY\" secondItem=\"Ze5-6b-2t3\" secondAttribute=\"bottom\" multiplier=\"1/3\" constant=\"1\" id=\"moa-c2-u7t\"/>\n                            <constraint firstItem=\"GJd-Yh-RWb\" firstAttribute=\"leading\" secondItem=\"Bcu-3y-fUS\" secondAttribute=\"leading\" symbolic=\"YES\" id=\"x7j-FC-K8j\"/>\n                        </constraints>\n                        <viewLayoutGuide key=\"safeArea\" id=\"Bcu-3y-fUS\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"52.173913043478265\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "example/ios/example/example.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>aps-environment</key>\n\t<string>development</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/example/exampleDebug.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>aps-environment</key>\n\t<string>development</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/example/exampleRelease.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>aps-environment</key>\n\t<string>development</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/example/main.m",
    "content": "#import <UIKit/UIKit.h>\n\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n  @autoreleasepool {\n    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n  }\n}\n"
  },
  {
    "path": "example/ios/example.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 54;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t00E356F31AD99517003FC87E /* exampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* exampleTests.m */; };\n\t\t13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };\n\t\t13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };\n\t\t13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };\n\t\t6624F833CFE6FAE06EFBCB7E /* libPods-example-exampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADED0886F5F1C51E3ABBF171 /* libPods-example-exampleTests.a */; };\n\t\t81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };\n\t\tF8F37020501137C11F0A513D /* libPods-example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B2D976C979666C668505339 /* libPods-example.a */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 13B07F861A680F5B00A75B9A;\n\t\t\tremoteInfo = example;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t00E356EE1AD99517003FC87E /* exampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = exampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t00E356F21AD99517003FC87E /* exampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = exampleTests.m; sourceTree = \"<group>\"; };\n\t\t13B07F961A680F5B00A75B9A /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = example/AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = example/AppDelegate.m; sourceTree = \"<group>\"; };\n\t\t13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = example/Images.xcassets; sourceTree = \"<group>\"; };\n\t\t13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = example/Info.plist; sourceTree = \"<group>\"; };\n\t\t13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = example/main.m; sourceTree = \"<group>\"; };\n\t\t1C79323D63F7DC3E6530E00F /* Pods-example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-example.release.xcconfig\"; path = \"Target Support Files/Pods-example/Pods-example.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t3061B48EE839E0AAF1DF8A70 /* Pods-example-exampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-example-exampleTests.release.xcconfig\"; path = \"Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t4B2D976C979666C668505339 /* libPods-example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-example.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t54E1C96C0B8E8387A67DA085 /* Pods-example-exampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-example-exampleTests.debug.xcconfig\"; path = \"Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = example/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\tADED0886F5F1C51E3ABBF171 /* libPods-example-exampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = \"libPods-example-exampleTests.a\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tB49CFFEA851CE25C01E565E9 /* Pods-example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-example.debug.xcconfig\"; path = \"Target Support Files/Pods-example/Pods-example.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\tED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t00E356EB1AD99517003FC87E /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t6624F833CFE6FAE06EFBCB7E /* libPods-example-exampleTests.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t13B07F8C1A680F5B00A75B9A /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tF8F37020501137C11F0A513D /* libPods-example.a in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t00E356EF1AD99517003FC87E /* exampleTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t00E356F21AD99517003FC87E /* exampleTests.m */,\n\t\t\t\t00E356F01AD99517003FC87E /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = exampleTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t00E356F01AD99517003FC87E /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t00E356F11AD99517003FC87E /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t13B07FAE1A68108700A75B9A /* example */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t13B07FAF1A68108700A75B9A /* AppDelegate.h */,\n\t\t\t\t13B07FB01A68108700A75B9A /* AppDelegate.m */,\n\t\t\t\t13B07FB51A68108700A75B9A /* Images.xcassets */,\n\t\t\t\t13B07FB61A68108700A75B9A /* Info.plist */,\n\t\t\t\t81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,\n\t\t\t\t13B07FB71A68108700A75B9A /* main.m */,\n\t\t\t);\n\t\t\tname = example;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t2D16E6871FA4F8E400B85C8A /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tED297162215061F000B7C4FE /* JavaScriptCore.framework */,\n\t\t\t\t4B2D976C979666C668505339 /* libPods-example.a */,\n\t\t\t\tADED0886F5F1C51E3ABBF171 /* libPods-example-exampleTests.a */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t57F921BA68894866340C44F7 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tB49CFFEA851CE25C01E565E9 /* Pods-example.debug.xcconfig */,\n\t\t\t\t1C79323D63F7DC3E6530E00F /* Pods-example.release.xcconfig */,\n\t\t\t\t54E1C96C0B8E8387A67DA085 /* Pods-example-exampleTests.debug.xcconfig */,\n\t\t\t\t3061B48EE839E0AAF1DF8A70 /* Pods-example-exampleTests.release.xcconfig */,\n\t\t\t);\n\t\t\tpath = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t832341AE1AAA6A7D00B99B32 /* Libraries */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t);\n\t\t\tname = Libraries;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t83CBB9F61A601CBA00E9B192 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t13B07FAE1A68108700A75B9A /* example */,\n\t\t\t\t832341AE1AAA6A7D00B99B32 /* Libraries */,\n\t\t\t\t00E356EF1AD99517003FC87E /* exampleTests */,\n\t\t\t\t83CBBA001A601CBA00E9B192 /* Products */,\n\t\t\t\t2D16E6871FA4F8E400B85C8A /* Frameworks */,\n\t\t\t\t57F921BA68894866340C44F7 /* Pods */,\n\t\t\t);\n\t\t\tindentWidth = 2;\n\t\t\tsourceTree = \"<group>\";\n\t\t\ttabWidth = 2;\n\t\t\tusesTabs = 0;\n\t\t};\n\t\t83CBBA001A601CBA00E9B192 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t13B07F961A680F5B00A75B9A /* example.app */,\n\t\t\t\t00E356EE1AD99517003FC87E /* exampleTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t00E356ED1AD99517003FC87E /* exampleTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget \"exampleTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t273986062E7292633C1D3DEC /* [CP] Check Pods Manifest.lock */,\n\t\t\t\t00E356EA1AD99517003FC87E /* Sources */,\n\t\t\t\t00E356EB1AD99517003FC87E /* Frameworks */,\n\t\t\t\t00E356EC1AD99517003FC87E /* Resources */,\n\t\t\t\t2F1B58B11C9006913466294F /* [CP] Embed Pods Frameworks */,\n\t\t\t\tDAAB5427BD51B3B1FE6F81D2 /* [CP] Copy Pods Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t00E356F51AD99517003FC87E /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = exampleTests;\n\t\t\tproductName = exampleTests;\n\t\t\tproductReference = 00E356EE1AD99517003FC87E /* exampleTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n\t\t13B07F861A680F5B00A75B9A /* example */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget \"example\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tFD5D3040D0E81E604C821678 /* [CP] Check Pods Manifest.lock */,\n\t\t\t\tFD10A7F022414F080027D42C /* Start Packager */,\n\t\t\t\t13B07F871A680F5B00A75B9A /* Sources */,\n\t\t\t\t13B07F8C1A680F5B00A75B9A /* Frameworks */,\n\t\t\t\t13B07F8E1A680F5B00A75B9A /* Resources */,\n\t\t\t\t00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,\n\t\t\t\t2CB0522BEA3630FDF414B287 /* [CP] Embed Pods Frameworks */,\n\t\t\t\tBAC54E6057913A06189AD116 /* [CP] Copy Pods Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = example;\n\t\t\tproductName = example;\n\t\t\tproductReference = 13B07F961A680F5B00A75B9A /* example.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t83CBB9F71A601CBA00E9B192 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1210;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t00E356ED1AD99517003FC87E = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.2;\n\t\t\t\t\t\tTestTargetID = 13B07F861A680F5B00A75B9A;\n\t\t\t\t\t};\n\t\t\t\t\t13B07F861A680F5B00A75B9A = {\n\t\t\t\t\t\tLastSwiftMigration = 1120;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject \"example\" */;\n\t\t\tcompatibilityVersion = \"Xcode 12.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 83CBB9F61A601CBA00E9B192;\n\t\t\tproductRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t13B07F861A680F5B00A75B9A /* example */,\n\t\t\t\t00E356ED1AD99517003FC87E /* exampleTests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t00E356EC1AD99517003FC87E /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t13B07F8E1A680F5B00A75B9A /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Bundle React Native code and images\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"set -e\\n\\nexport NODE_BINARY=node\\n../../node_modules/react-native/scripts/react-native-xcode.sh\\n\";\n\t\t};\n\t\t273986062E7292633C1D3DEC /* [CP] Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\t\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\",\n\t\t\t\t\"${PODS_ROOT}/Manifest.lock\",\n\t\t\t);\n\t\t\tname = \"[CP] Check Pods Manifest.lock\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t\t\"$(DERIVED_FILE_DIR)/Pods-example-exampleTests-checkManifestLockResult.txt\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [ $? != 0 ] ; then\\n    # print error to STDERR\\n    echo \\\"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\\" >&2\\n    exit 1\\nfi\\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\\necho \\\"SUCCESS\\\" > \\\"${SCRIPT_OUTPUT_FILE_0}\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t2CB0522BEA3630FDF414B287 /* [CP] Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-input-files.xcfilelist\",\n\t\t\t);\n\t\t\tname = \"[CP] Embed Pods Frameworks\";\n\t\t\toutputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks-${CONFIGURATION}-output-files.xcfilelist\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\t2F1B58B11C9006913466294F /* [CP] Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-input-files.xcfilelist\",\n\t\t\t);\n\t\t\tname = \"[CP] Embed Pods Frameworks\";\n\t\t\toutputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks-${CONFIGURATION}-output-files.xcfilelist\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tBAC54E6057913A06189AD116 /* [CP] Copy Pods Resources */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-input-files.xcfilelist\",\n\t\t\t);\n\t\t\tname = \"[CP] Copy Pods Resources\";\n\t\t\toutputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources-${CONFIGURATION}-output-files.xcfilelist\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${PODS_ROOT}/Target Support Files/Pods-example/Pods-example-resources.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tDAAB5427BD51B3B1FE6F81D2 /* [CP] Copy Pods Resources */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-input-files.xcfilelist\",\n\t\t\t);\n\t\t\tname = \"[CP] Copy Pods Resources\";\n\t\t\toutputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources-${CONFIGURATION}-output-files.xcfilelist\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${PODS_ROOT}/Target Support Files/Pods-example-exampleTests/Pods-example-exampleTests-resources.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tFD10A7F022414F080027D42C /* Start Packager */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Start Packager\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"export RCT_METRO_PORT=\\\"${RCT_METRO_PORT:=8081}\\\"\\necho \\\"export RCT_METRO_PORT=${RCT_METRO_PORT}\\\" > \\\"${SRCROOT}/../../node_modules/react-native/scripts/.packager.env\\\"\\nif [ -z \\\"${RCT_NO_LAUNCH_PACKAGER+xxx}\\\" ] ; then\\n  if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\\n    if ! curl -s \\\"http://localhost:${RCT_METRO_PORT}/status\\\" | grep -q \\\"packager-status:running\\\" ; then\\n      echo \\\"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\\\"\\n      exit 2\\n    fi\\n  else\\n    open \\\"$SRCROOT/../../node_modules/react-native/scripts/launchPackager.command\\\" || echo \\\"Can't start packager automatically\\\"\\n  fi\\nfi\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tFD5D3040D0E81E604C821678 /* [CP] Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\t\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\",\n\t\t\t\t\"${PODS_ROOT}/Manifest.lock\",\n\t\t\t);\n\t\t\tname = \"[CP] Check Pods Manifest.lock\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t\t\"$(DERIVED_FILE_DIR)/Pods-example-checkManifestLockResult.txt\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [ $? != 0 ] ; then\\n    # print error to STDERR\\n    echo \\\"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\\" >&2\\n    exit 1\\nfi\\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\\necho \\\"SUCCESS\\\" > \\\"${SCRIPT_OUTPUT_FILE_0}\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t00E356EA1AD99517003FC87E /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t00E356F31AD99517003FC87E /* exampleTests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t13B07F871A680F5B00A75B9A /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,\n\t\t\t\t13B07FC11A68108700A75B9A /* main.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t00E356F51AD99517003FC87E /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 13B07F861A680F5B00A75B9A /* example */;\n\t\t\ttargetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin XCBuildConfiguration section */\n\t\t00E356F61AD99517003FC87E /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 54E1C96C0B8E8387A67DA085 /* Pods-example-exampleTests.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = exampleTests/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 10.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tOTHER_LDFLAGS = (\n\t\t\t\t\t\"-ObjC\",\n\t\t\t\t\t\"-lc++\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/example.app/example\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t00E356F71AD99517003FC87E /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 3061B48EE839E0AAF1DF8A70 /* Pods-example-exampleTests.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tINFOPLIST_FILE = exampleTests/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 10.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tOTHER_LDFLAGS = (\n\t\t\t\t\t\"-ObjC\",\n\t\t\t\t\t\"-lc++\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/example.app/example\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t13B07F941A680F5B00A75B9A /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = B49CFFEA851CE25C01E565E9 /* Pods-example.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tENABLE_BITCODE = NO;\n\t\t\t\tINFOPLIST_FILE = example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tOTHER_LDFLAGS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"-ObjC\",\n\t\t\t\t\t\"-lc++\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = example;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t13B07F951A680F5B00A75B9A /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 1C79323D63F7DC3E6530E00F /* Pods-example.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tINFOPLIST_FILE = example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tOTHER_LDFLAGS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"-ObjC\",\n\t\t\t\t\t\"-lc++\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = example;\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t83CBBA201A601CBA00E9B192 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\t\"EXCLUDED_ARCHS[sdk=iphonesimulator*]\" = i386;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 10.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t/usr/lib/swift,\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tLIBRARY_SEARCH_PATHS = (\n\t\t\t\t\t\"\\\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\\\"\",\n\t\t\t\t\t\"\\\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\\\"\",\n\t\t\t\t\t\"\\\"$(inherited)\\\"\",\n\t\t\t\t);\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t83CBBA211A601CBA00E9B192 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\t\"EXCLUDED_ARCHS[sdk=iphonesimulator*]\" = i386;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 10.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t/usr/lib/swift,\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tLIBRARY_SEARCH_PATHS = (\n\t\t\t\t\t\"\\\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\\\"\",\n\t\t\t\t\t\"\\\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\\\"\",\n\t\t\t\t\t\"\\\"$(inherited)\\\"\",\n\t\t\t\t);\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget \"exampleTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t00E356F61AD99517003FC87E /* Debug */,\n\t\t\t\t00E356F71AD99517003FC87E /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget \"example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t13B07F941A680F5B00A75B9A /* Debug */,\n\t\t\t\t13B07F951A680F5B00A75B9A /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject \"example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t83CBBA201A601CBA00E9B192 /* Debug */,\n\t\t\t\t83CBBA211A601CBA00E9B192 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;\n}\n"
  },
  {
    "path": "example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1210\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"13B07F861A680F5B00A75B9A\"\n               BuildableName = \"example.app\"\n               BlueprintName = \"example\"\n               ReferencedContainer = \"container:example.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"00E356ED1AD99517003FC87E\"\n               BuildableName = \"exampleTests.xctest\"\n               BlueprintName = \"exampleTests\"\n               ReferencedContainer = \"container:example.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"13B07F861A680F5B00A75B9A\"\n            BuildableName = \"example.app\"\n            BlueprintName = \"example\"\n            ReferencedContainer = \"container:example.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"13B07F861A680F5B00A75B9A\"\n            BuildableName = \"example.app\"\n            BlueprintName = \"example\"\n            ReferencedContainer = \"container:example.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "example/ios/example.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:example.xcodeproj\">\n   </FileRef>\n   <FileRef\n      location = \"group:Pods/Pods.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/exampleTests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "example/ios/exampleTests/exampleTests.m",
    "content": "#import <UIKit/UIKit.h>\n#import <XCTest/XCTest.h>\n\n#import <React/RCTLog.h>\n#import <React/RCTRootView.h>\n\n#define TIMEOUT_SECONDS 600\n#define TEXT_TO_LOOK_FOR @\"Welcome to React\"\n\n@interface exampleTests : XCTestCase\n\n@end\n\n@implementation exampleTests\n\n- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test\n{\n  if (test(view)) {\n    return YES;\n  }\n  for (UIView *subview in [view subviews]) {\n    if ([self findSubviewInView:subview matching:test]) {\n      return YES;\n    }\n  }\n  return NO;\n}\n\n- (void)testRendersWelcomeScreen\n{\n  UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];\n  NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];\n  BOOL foundElement = NO;\n\n  __block NSString *redboxError = nil;\n#ifdef DEBUG\n  RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {\n    if (level >= RCTLogLevelError) {\n      redboxError = message;\n    }\n  });\n#endif\n\n  while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {\n    [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];\n    [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];\n\n    foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {\n      if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {\n        return YES;\n      }\n      return NO;\n    }];\n  }\n\n#ifdef DEBUG\n  RCTSetLogFunction(RCTDefaultLogFunction);\n#endif\n\n  XCTAssertNil(redboxError, @\"RedBox error: %@\", redboxError);\n  XCTAssertTrue(foundElement, @\"Couldn't find element with text '%@' in %d seconds\", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);\n}\n\n\n@end\n"
  },
  {
    "path": "example/metro.config.js",
    "content": "/**\n * Metro configuration for React Native\n * https://github.com/facebook/react-native\n *\n * @format\n */\n\nmodule.exports = {\n  transformer: {\n    getTransformOptions: async () => ({\n      transform: {\n        experimentalImportSupport: false,\n        inlineRequires: true,\n      },\n    }),\n  },\n};\n"
  },
  {
    "path": "index.d.ts",
    "content": "// Type definitions for @react-native-community/push-notification-ios 1.0.2\n// Project: https://github.com/react-native-community/push-notification-ios\n// Definitions by: Jules Sam. Randolph <https://github.com/jsamr>\n\nexport interface FetchResult {\n  NewData: 'UIBackgroundFetchResultNewData';\n  NoData: 'UIBackgroundFetchResultNoData';\n  ResultFailed: 'UIBackgroundFetchResultFailed';\n}\n\nexport interface AuthorizationStatus {\n  UNAuthorizationStatusNotDetermined: 0;\n  UNAuthorizationStatusDenied: 1;\n  UNAuthorizationStatusAuthorized: 2;\n  UNAuthorizationStatusProvisional: 3;\n}\n\n/**\n * Alert Object that can be included in the aps `alert` object\n */\nexport type NotificationAlert = {\n  title?: string;\n  subtitle?: string;\n  body?: string;\n};\n\n/**\n * Notification Category that can include specific actions\n */\nexport type NotificationCategory = {\n  id: string;\n  actions: NotificationAction[];\n};\n\n/**\n * Notification Action that can be added to specific categories\n */\nexport type NotificationAction = {\n  /**\n   * Id of Action.\n   * This value will be returned as actionIdentifier when notification is received.\n   */\n  id: string;\n  /**\n   * Text to be shown on notification action button.\n   */\n  title: string;\n  /**\n   * Option for notification action.\n   */\n  options?: {\n    foreground?: boolean;\n    destructive?: boolean;\n    authenticationRequired?: boolean;\n  };\n  /**\n   * Option for textInput action.\n   * If textInput prop exists, then user action will automatically become a text input action.\n   * The text user inputs will be in the userText field of the received notification.\n   */\n  textInput?: {\n    /**\n     * Text to be shown on button when user finishes text input.\n     * Default is \"Send\" or its equivalent word in user's language setting.\n     */\n    buttonTitle?: string;\n    /**\n     * Placeholder for text input for text input action.\n     */\n    placeholder?: string;\n  };\n};\n\nexport interface PushNotification {\n  /**\n   * An alias for `getAlert` to get the notification's main message string\n   */\n  getMessage(): string | NotificationAlert;\n\n  /**\n   * Gets the sound string from the `aps` object\n   */\n  getSound(): string;\n\n  /**\n   * Gets the category string from the `aps` object\n   */\n  getCategory(): string;\n\n  /**\n   * Gets the notification's main message from the `aps` object\n   */\n  getAlert(): string | NotificationAlert;\n\n  /**\n   * Gets the notification's title from the `aps` object\n   */\n  getTitle(): string;\n\n  /**\n   * Gets the notification's subtitle from the `aps` object\n   */\n  getSubtitle(): string | undefined;\n\n  /**\n   * Gets the content-available number from the `aps` object\n   */\n  getContentAvailable(): number;\n\n  /**\n   * Gets the badge count number from the `aps` object\n   */\n  getBadgeCount(): number;\n\n  /**\n   * Gets the data object on the notif\n   */\n  getData(): Record<string, any>;\n\n  /**\n   * Get's the action id of the notification action user has taken.\n   */\n  getActionIdentifier(): string | undefined;\n\n  /**\n   * Gets the text user has inputed if user has taken the text action response.\n   */\n  getUserText(): string | undefined;\n\n  /**\n   * iOS Only\n   * Signifies remote notification handling is complete\n   */\n  finish(result: string): void;\n}\n\nexport type NotificationRequest = {\n  /**\n   * identifier of the notification.\n   * Required in order to retrieve specific notification.\n   */\n  id: string;\n  /**\n   * A short description of the reason for the alert.\n   */\n  title?: string;\n  /**\n   * A secondary description of the reason for the alert.\n   */\n  subtitle?: string;\n  /**\n   * The message displayed in the notification alert.\n   */\n  body?: string;\n  /**\n   * The number to display as the app's icon badge.\n   */\n  badge?: number;\n  /**\n   * The sound to play when the notification is delivered.\n   * The file should be added in the ios project from Xcode, on your target, so that it is bundled in the final app.\n   * For more details see the example app.\n   */\n  sound?: string;\n  /**\n   * The category of this notification. Required for actionable notifications.\n   */\n  category?: string;\n  /**\n   * The thread identifier of this notification.\n   */\n  threadId?: string;\n  /**\n   * The date which notification triggers.\n   */\n  fireDate?: Date;\n  /**\n   * Sets notification to repeat daily.\n   * Must be used with fireDate.\n   */\n  repeats?: boolean;\n  /**\n   * Define what components should be used in the fireDate during repeats.\n   * Must be used with repeats and fireDate.\n   */\n  repeatsComponent?: {\n    year?: boolean;\n    month?: boolean;\n    day?: boolean;\n    dayOfWeek?: boolean;\n    hour?: boolean;\n    minute?: boolean;\n    second?: boolean;\n  };\n  /**\n   * Sets notification to be silent\n   */\n  isSilent?: boolean;\n  /**\n   * Sets notification to be critical\n   */\n  isCritical?: boolean;\n  /**\n   * The volume for the critical alert’s sound. Set this to a value between 0.0 (silent) and 1.0 (full volume).\n   */\n  criticalSoundVolume?: number;\n  /**\n   * Optional data to be added to the notification\n   */\n  userInfo?: Record<string, any>;\n  /**\n   * If true, fireDate adjusted automatically upon time zone changes (e.g. for an alarm clock).\n   */\n  isTimeZoneAgnostic?: boolean;\n  /**\n   * The interruption level for the notification.\n   * Possible values: 'passive', 'active', 'timeSensitive', 'critical'\n   */\n  interruptionLevel?: 'passive' | 'active' | 'timeSensitive' | 'critical',\n};\n\n/**\n * @deprecated see `NotificationRequest`\n * - This type will be removed in the next major version\n */\nexport interface PresentLocalNotificationDetails {\n  /**\n   * The \"action\" displayed beneath an actionable notification. Defaults to \"view\";\n   */\n  alertAction?: string;\n  /**\n   * The message displayed in the notification alert.\n   */\n  alertBody: string;\n  /**\n   * The text displayed as the title of the notification alert.\n   */\n  alertTitle?: string;\n  /**\n   * The number to display as the app's icon badge. Setting the number to 0 removes the icon badge. (optional)\n   */\n  applicationIconBadgeNumber?: number;\n  /**\n   * The category of this notification, required for actionable notifications. (optional)\n   */\n  category?: string;\n  /**\n   * The sound played when the notification is fired (optional).\n   * The file should be added in the ios project from Xcode, on your target, so that it is bundled in the final app\n   * For more details see the example app.\n   */\n  soundName?: string;\n  /**\n   * If true, the notification will appear without sound (optional).\n   */\n  isSilent?: boolean;\n  /**\n   * An object containing additional notification data (optional).\n   */\n  userInfo?: Record<string, any>;\n}\n\n/**\n * @deprecated see `NotificationRequest`\n * - This type will be removed in the next major version\n */\nexport interface ScheduleLocalNotificationDetails {\n  /**\n   * The \"action\" displayed beneath an actionable notification. Defaults to \"view\";\n   */\n  alertAction?: string;\n  /**\n   * The message displayed in the notification alert.\n   */\n  alertBody: string;\n  /**\n   * The text displayed as the title of the notification alert.\n   */\n  alertTitle?: string;\n  /**\n   * The number to display as the app's icon badge. Setting the number to 0 removes the icon badge. (optional)\n   */\n  applicationIconBadgeNumber?: number;\n  /**\n   * The category of this notification, required for actionable notifications. (optional)\n   */\n  category?: string;\n  /**\n   * The date and time when the system should deliver the notification.\n   * Use Date.toISOString() to convert to the expected format\n   */\n  fireDate: string;\n  /**\n   * The sound played when the notification is fired (optional).\n   * The file should be added in the ios project from Xcode, on your target, so that it is bundled in the final app\n   * For more details see the example app.\n   */\n  soundName?: string;\n  /**\n   * If true, the notification will appear without sound (optional).\n   */\n  isSilent?: boolean;\n  /**\n   * An object containing additional notification data (optional).\n   */\n  userInfo?: Record<string, any>;\n  /**\n   * The interval to repeat as a string. Possible values: minute, hour, day, week, month, year.\n   */\n  repeatInterval?: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';\n}\n\nexport type DeliveredNotification = {\n  identifier: string;\n  title: string;\n  subtitle: string;\n  body: string;\n  category?: string;\n  actionIdentifier?: string;\n  userText?: string;\n  userInfo?: Record<string, any>;\n  'thread-id'?: string;\n};\n\nexport interface PushNotificationPermissions {\n  alert?: boolean;\n  badge?: boolean;\n  sound?: boolean;\n  critical?: boolean;\n  lockScreen?: boolean;\n  notificationCenter?: boolean;\n  authorizationStatus?: AuthorizationStatus[keyof AuthorizationStatus];\n}\n\nexport type PushNotificationEventName =\n  | 'notification'\n  | 'localNotification'\n  | 'register'\n  | 'registrationError';\n\n/**\n * Handle push notifications for your app, including permission handling and icon badge number.\n */\nexport interface PushNotificationIOSStatic {\n  /**\n   * iOS fetch results that best describe the result of a finished remote notification handler.\n   * For a list of possible values, see `PushNotificationIOS.FetchResult`.\n   */\n  FetchResult: FetchResult;\n  /**\n   * Authorization status of notification settings\n   * For a list of possible values, see `PushNotificationIOS.AuthorizationStatus`.\n   */\n  AuthorizationStatus: AuthorizationStatus;\n  /**\n   * @deprecated use `addNotificationRequest`\n   * Schedules the localNotification for immediate presentation.\n   * details is an object containing:\n   * alertBody : The message displayed in the notification alert.\n   * alertAction : The \"action\" displayed beneath an actionable notification. Defaults to \"view\";\n   * soundName : The sound played when the notification is fired (optional). The file should be added in the ios project from Xcode, on your target, so that it is bundled in the final app. For more details see the example app.\n   * category : The category of this notification, required for actionable notifications (optional).\n   * userInfo : An optional object containing additional notification data.\n   * applicationIconBadgeNumber (optional) : The number to display as the app's icon badge. The default value of this property is 0, which means that no badge is displayed.\n   */\n  presentLocalNotification(details: PresentLocalNotificationDetails): void;\n\n  /**\n   * @deprecated use `addNotificationRequest`\n   * Schedules the localNotification for future presentation.\n   * details is an object containing:\n   * fireDate : The date and time when the system should deliver the notification.\n   * alertBody : The message displayed in the notification alert.\n   * alertAction : The \"action\" displayed beneath an actionable notification. Defaults to \"view\";\n   * soundName : The sound played when the notification is fired (optional). The file should be added in the ios project from Xcode, on your target, so that it is bundled in the final app. For more details see the example app.\n   * category : The category of this notification, required for actionable notifications (optional).\n   * userInfo : An optional object containing additional notification data.\n   * applicationIconBadgeNumber (optional) : The number to display as the app's icon badge. Setting the number to 0 removes the icon badge.\n   */\n  scheduleLocalNotification(details: ScheduleLocalNotificationDetails): void;\n\n  /**\n   * Sends notificationRequest to notification center at specified firedate.\n   * Fires immediately if firedate is not set.\n   */\n  addNotificationRequest(request: NotificationRequest): void;\n\n  /**\n   * Cancels all scheduled localNotifications\n   * @deprecated use `removeAllPendingNotificationRequests` instead\n   * - This method is deprecated in iOS 10 and will be removed from future release\n   */\n  cancelAllLocalNotifications(): void;\n\n  /**\n   * Removes all pending notifications\n   */\n  removeAllPendingNotificationRequests(): void;\n\n  /**\n   * Removes specified pending notifications from Notification Center.\n   */\n  removePendingNotificationRequests(identifiers: string[]): void;\n\n  /**\n   * Remove all delivered notifications from Notification Center.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#removealldeliverednotifications\n   */\n  removeAllDeliveredNotifications(): void;\n\n  /**\n   * Provides you with a list of the app’s notifications that are still displayed in Notification Center.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getdeliverednotifications\n   */\n  getDeliveredNotifications(\n    callback: (notifications: Record<string, any>[]) => void,\n  ): DeliveredNotification;\n\n  /**\n   * Removes the specified notifications from Notification Center\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#removedeliverednotifications\n   */\n  removeDeliveredNotifications(identifiers: string[]): void;\n\n  /**\n   * Sets the badge number for the app icon on the home screen\n   */\n  setApplicationIconBadgeNumber(number: number): void;\n\n  /**\n   * Gets the current badge number for the app icon on the home screen\n   */\n  getApplicationIconBadgeNumber(callback: (badge: number) => void): void;\n\n  /**\n   * @deprecated use `removeAllPendingNotificationRequests`\n   * - This method will be removed in the next major version\n   * - Cancel local notifications.\n   * - Optionally restricts the set of canceled notifications to those notifications whose userInfo fields match the corresponding fields in the userInfo argument.\n   */\n  cancelLocalNotifications(userInfo: Record<string, any>): void;\n\n  /**\n   * @deprecated use `getPendingNotificationRequests`\n   * - This method will be removed in the next major version\n   * - Gets the local notifications that are currently scheduled.\n   */\n  getScheduledLocalNotifications(\n    callback: (notifications: ScheduleLocalNotificationDetails[]) => void,\n  ): void;\n\n  /**\n   * - Gets all pending notification requests that are currently scheduled.\n   */\n  getPendingNotificationRequests(\n    callback: (notifications: NotificationRequest[]) => void,\n  ): void;\n\n  /**\n   * Attaches a listener to remote notifications while the app is running in the\n   * foreground or the background.\n   *\n   * The handler will get be invoked with an instance of `PushNotificationIOS`\n   *\n   * The type MUST be 'notification'\n   */\n  addEventListener(\n    type: 'notification' | 'localNotification',\n    handler: (notification: PushNotification) => void,\n  ): void;\n\n  /**\n   * Fired when the user registers for remote notifications.\n   *\n   * The handler will be invoked with a hex string representing the deviceToken.\n   *\n   * The type MUST be 'register'\n   */\n  addEventListener(\n    type: 'register',\n    handler: (deviceToken: string) => void,\n  ): void;\n\n  /**\n   * Fired when the user fails to register for remote notifications.\n   * Typically occurs when APNS is having issues, or the device is a simulator.\n   *\n   * The handler will be invoked with {message: string, code: number, details: any}.\n   *\n   * The type MUST be 'registrationError'\n   */\n  addEventListener(\n    type: 'registrationError',\n    handler: (error: {message: string; code: number; details: any}) => void,\n  ): void;\n\n  /**\n   * Removes the event listener. Do this in `componentWillUnmount` to prevent\n   * memory leaks\n   */\n  removeEventListener(type: PushNotificationEventName): void;\n\n  /**\n   * Requests all notification permissions from iOS, prompting the user's\n   * dialog box.\n   */\n  requestPermissions(\n    permissions?: PushNotificationPermissions[] | PushNotificationPermissions,\n  ): Promise<PushNotificationPermissions>;\n\n  /**\n   * Unregister for all remote notifications received via Apple Push\n   * Notification service.\n   * You should call this method in rare circumstances only, such as when\n   * a new version of the app removes support for all types of remote\n   * notifications. Users can temporarily prevent apps from receiving\n   * remote notifications through the Notifications section of the\n   * Settings app. Apps unregistered through this method can always\n   * re-register.\n   */\n  abandonPermissions(): void;\n\n  /**\n   * See what push permissions are currently enabled. `callback` will be\n   * invoked with a `permissions` object:\n   *\n   *  - `alert` :boolean\n   *  - `badge` :boolean\n   *  - `sound` :boolean\n   */\n  checkPermissions(\n    callback: (permissions: PushNotificationPermissions) => void,\n  ): void;\n\n  /**\n   * This method returns a promise that resolves to either the notification\n   * object if the app was launched by a push notification, or `null` otherwise.\n   */\n  getInitialNotification(): Promise<PushNotification | null>;\n\n  /**\n   * Sets notification category to notification center.\n   * Used to set specific actions for notifications that contains specified category\n   */\n  setNotificationCategories(categories: NotificationCategory[]): void;\n}\n\ndeclare const PushNotificationIOS: PushNotificationIOSStatic;\n\nexport default PushNotificationIOS;\n"
  },
  {
    "path": "index.js",
    "content": "import {AppRegistry} from 'react-native';\nimport {App} from './example/App';\nimport {name as appName} from './example/app.json';\n\nAppRegistry.registerComponent(appName, () => App);\n"
  },
  {
    "path": "ios/PushNotificationIOS.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t9BEF92C02212C2D10027AF0D /* RNCPushNotificationIOS.m in Sources */ = {isa = PBXBuildFile; fileRef = 9B97F674220DED9C00B61540 /* RNCPushNotificationIOS.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t9B97F669220DEC6000B61540 /* CopyFiles */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"include/$(PRODUCT_NAME)\";\n\t\t\tdstSubfolderSpec = 16;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t9B97F666220DEAF700B61540 /* RNCPushNotificationIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNCPushNotificationIOS.h; sourceTree = \"<group>\"; };\n\t\t9B97F66B220DEC6000B61540 /* libRNCPushNotificationIOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNCPushNotificationIOS.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t9B97F674220DED9C00B61540 /* RNCPushNotificationIOS.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNCPushNotificationIOS.m; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t9B97F668220DEC6000B61540 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t2D16E6871FA4F8E400B85C8A /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t83CBB9F61A601CBA00E9B192 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9B97F674220DED9C00B61540 /* RNCPushNotificationIOS.m */,\n\t\t\t\t9B97F666220DEAF700B61540 /* RNCPushNotificationIOS.h */,\n\t\t\t\t83CBBA001A601CBA00E9B192 /* Products */,\n\t\t\t\t2D16E6871FA4F8E400B85C8A /* Frameworks */,\n\t\t\t);\n\t\t\tindentWidth = 2;\n\t\t\tsourceTree = \"<group>\";\n\t\t\ttabWidth = 2;\n\t\t\tusesTabs = 0;\n\t\t};\n\t\t83CBBA001A601CBA00E9B192 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9B97F66B220DEC6000B61540 /* libRNCPushNotificationIOS.a */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t9B97F66A220DEC6000B61540 /* RNCPushNotificationIOS */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 9B97F671220DEC6000B61540 /* Build configuration list for PBXNativeTarget \"RNCPushNotificationIOS\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t9B97F667220DEC6000B61540 /* Sources */,\n\t\t\t\t9B97F668220DEC6000B61540 /* Frameworks */,\n\t\t\t\t9B97F669220DEC6000B61540 /* CopyFiles */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = RNCPushNotificationIOS;\n\t\t\tproductName = RNCPushNotificationIOS;\n\t\t\tproductReference = 9B97F66B220DEC6000B61540 /* libRNCPushNotificationIOS.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t83CBB9F71A601CBA00E9B192 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0940;\n\t\t\t\tORGANIZATIONNAME = Facebook;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t9B97F66A220DEC6000B61540 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 10.1;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject \"PushNotificationIOS\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 83CBB9F61A601CBA00E9B192;\n\t\t\tproductRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t9B97F66A220DEC6000B61540 /* RNCPushNotificationIOS */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t9B97F667220DEC6000B61540 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t9BEF92C02212C2D10027AF0D /* RNCPushNotificationIOS.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin XCBuildConfiguration section */\n\t\t83CBBA201A601CBA00E9B192 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t83CBBA211A601CBA00E9B192 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t9B97F672220DEC6000B61540 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tOTHER_LDFLAGS = \"-ObjC\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t9B97F673220DEC6000B61540 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 9.0;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tOTHER_LDFLAGS = \"-ObjC\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject \"PushNotificationIOS\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t83CBBA201A601CBA00E9B192 /* Debug */,\n\t\t\t\t83CBBA211A601CBA00E9B192 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t9B97F671220DEC6000B61540 /* Build configuration list for PBXNativeTarget \"RNCPushNotificationIOS\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t9B97F672220DEC6000B61540 /* Debug */,\n\t\t\t\t9B97F673220DEC6000B61540 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;\n}\n"
  },
  {
    "path": "ios/PushNotificationIOS.xcodeproj/xcshareddata/xcschemes/PushNotificationIOS-tvOS.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0940\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"NO\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"2D2A28121D9B038B00D4039D\"\n               BuildableName = \"libReact.a\"\n               BlueprintName = \"React-tvOS\"\n               ReferencedContainer = \"container:../node_modules/react-native/React/React.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"2D02E47A1E0B4A5D006451C7\"\n               BuildableName = \"PushNotificationIOS-tvOS.app\"\n               BlueprintName = \"PushNotificationIOS-tvOS\"\n               ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"NO\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"2D02E48F1E0B4A5D006451C7\"\n               BuildableName = \"PushNotificationIOS-tvOSTests.xctest\"\n               BlueprintName = \"PushNotificationIOS-tvOSTests\"\n               ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"2D02E48F1E0B4A5D006451C7\"\n               BuildableName = \"PushNotificationIOS-tvOSTests.xctest\"\n               BlueprintName = \"PushNotificationIOS-tvOSTests\"\n               ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"2D02E47A1E0B4A5D006451C7\"\n            BuildableName = \"PushNotificationIOS-tvOS.app\"\n            BlueprintName = \"PushNotificationIOS-tvOS\"\n            ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"2D02E47A1E0B4A5D006451C7\"\n            BuildableName = \"PushNotificationIOS-tvOS.app\"\n            BlueprintName = \"PushNotificationIOS-tvOS\"\n            ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"2D02E47A1E0B4A5D006451C7\"\n            BuildableName = \"PushNotificationIOS-tvOS.app\"\n            BlueprintName = \"PushNotificationIOS-tvOS\"\n            ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "ios/PushNotificationIOS.xcodeproj/xcshareddata/xcschemes/PushNotificationIOS.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0940\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"NO\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"83CBBA2D1A601D0E00E9B192\"\n               BuildableName = \"libReact.a\"\n               BlueprintName = \"React\"\n               ReferencedContainer = \"container:../node_modules/react-native/React/React.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"13B07F861A680F5B00A75B9A\"\n               BuildableName = \"PushNotificationIOS.app\"\n               BlueprintName = \"PushNotificationIOS\"\n               ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"NO\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"00E356ED1AD99517003FC87E\"\n               BuildableName = \"PushNotificationIOSTests.xctest\"\n               BlueprintName = \"PushNotificationIOSTests\"\n               ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"00E356ED1AD99517003FC87E\"\n               BuildableName = \"PushNotificationIOSTests.xctest\"\n               BlueprintName = \"PushNotificationIOSTests\"\n               ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"13B07F861A680F5B00A75B9A\"\n            BuildableName = \"PushNotificationIOS.app\"\n            BlueprintName = \"PushNotificationIOS\"\n            ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"13B07F861A680F5B00A75B9A\"\n            BuildableName = \"PushNotificationIOS.app\"\n            BlueprintName = \"PushNotificationIOS\"\n            ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"13B07F861A680F5B00A75B9A\"\n            BuildableName = \"PushNotificationIOS.app\"\n            BlueprintName = \"PushNotificationIOS\"\n            ReferencedContainer = \"container:PushNotificationIOS.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "ios/RCTConvert+Notification.h",
    "content": "//\n//  RCTConvert+Notification.h\n//  Pods\n//\n//  Created by Jesse Katsumata on 2020/11/25.\n//\n\n#import <React/RCTConvert.h>\n#import <React/RCTUtils.h>\n#import <UserNotifications/UserNotifications.h>\n\n@interface RCTConvert (NSCalendarUnit)\n+ (NSCalendarUnit)NSCalendarUnit:(id)json;\n@end\n\n@interface RCTConvert (UNNotificationInterruptionLevel)\n+ (UNNotificationInterruptionLevel)UNNotificationInterruptionLevel:(id)json API_AVAILABLE(ios(15.0));\n@end\n\n/**\n * Type deprecated in iOS 10.0\n * TODO: This method will be removed in the next major version\n */\n@interface RCTConvert (UILocalNotification)\n+ (UILocalNotification *)UILocalNotification:(id)json;\n+ (NSDictionary *)RCTFormatLocalNotification:(UILocalNotification *)notification;\n@end\n\n@interface RCTConvert (UNNotificationRequest)\n+ (UNNotificationRequest *)UNNotificationRequest:(id)json;\n+ (NSDictionary *)RCTFormatUNNotificationRequest:(UNNotificationRequest *)request;\n@end\n\n@interface RCTConvert (UNNotificationAction)\n+ (UNNotificationAction *)UNNotificationAction:(id)json;\n@end\n\n@interface RCTConvert (UNNotificationActionOptions)\n+ (UNNotificationActionOptions *)UNNotificationActionOptions:(id)json;\n@end\n\n@interface RCTConvert (UNNotificationCategory)\n+ (UNNotificationCategory *)UNNotificationCategory:(id)json;\n@end\n\n\n@interface RCTConvert (UNNotificationResponse)\n+ (NSDictionary *)RCTFormatUNNotificationResponse:(UNNotificationResponse *)response;\n@end\n\n@interface RCTConvert (UNNotification)\n+ (NSDictionary *)RCTFormatUNNotification:(UNNotification *)notification;\n@end\n\n\n"
  },
  {
    "path": "ios/RCTConvert+Notification.m",
    "content": "//\n//  RCTConvert+.m\n//  RNCPushNotificationIOS\n//\n//  Created by Jesse Katsumata on 2020/11/25.\n//\n\n#import \"RCTConvert+Notification.h\"\n\n@implementation RCTConvert (NSCalendarUnit)\n\nRCT_ENUM_CONVERTER(NSCalendarUnit,\n                   (@{\n                      @\"year\": @(NSCalendarUnitYear),\n                      @\"month\": @(NSCalendarUnitMonth),\n                      @\"week\": @(NSCalendarUnitWeekOfYear),\n                      @\"day\": @(NSCalendarUnitDay),\n                      @\"hour\": @(NSCalendarUnitHour),\n                      @\"minute\": @(NSCalendarUnitMinute)\n                      }),\n                   0,\n                   integerValue)\n\n@end\n\n\n@implementation RCTConvert (UNNotificationInterruptionLevel)\n\nRCT_ENUM_CONVERTER(UNNotificationInterruptionLevel,\n                   (@{\n                      @\"passive\": @(UNNotificationInterruptionLevelPassive),\n                      @\"active\": @(UNNotificationInterruptionLevelActive),\n                      @\"timeSensitive\": @(UNNotificationInterruptionLevelTimeSensitive),\n                      @\"critical\": @(UNNotificationInterruptionLevelCritical)\n                      }),\n                   0,\n                   integerValue)\n\n@end\n\n\n/**\n * Type deprecated in iOS 10.0\n * TODO: This method will be removed in the next major version\n */\n@implementation RCTConvert (UILocalNotification)\n\n+ (UILocalNotification *)UILocalNotification:(id)json\n{\n    NSDictionary<NSString *, id> *details = [self NSDictionary:json];\n    BOOL isSilent = [RCTConvert BOOL:details[@\"isSilent\"]];\n    BOOL isTimeZoneAgnostic = [RCTConvert BOOL:details[@\"isTimeZoneAgnostic\"]];\n    UILocalNotification *notification = [UILocalNotification new];\n    notification.alertTitle = [RCTConvert NSString:details[@\"alertTitle\"]];\n    notification.fireDate = [RCTConvert NSDate:details[@\"fireDate\"]] ?: [NSDate date];\n    notification.alertBody = [RCTConvert NSString:details[@\"alertBody\"]];\n    notification.alertAction = [RCTConvert NSString:details[@\"alertAction\"]];\n    notification.userInfo = [RCTConvert NSDictionary:details[@\"userInfo\"]];\n    notification.category = [RCTConvert NSString:details[@\"category\"]];\n    notification.repeatInterval = [RCTConvert NSCalendarUnit:details[@\"repeatInterval\"]];\n    if (details[@\"applicationIconBadgeNumber\"]) {\n        notification.applicationIconBadgeNumber = [RCTConvert NSInteger:details[@\"applicationIconBadgeNumber\"]];\n    }\n    if (!isSilent) {\n        notification.soundName = [RCTConvert NSString:details[@\"soundName\"]] ?: UILocalNotificationDefaultSoundName;\n    }\n    if (isTimeZoneAgnostic) {\n        notification.timeZone = [NSTimeZone defaultTimeZone];\n    }\n    return notification;\n}\n\nRCT_ENUM_CONVERTER(UIBackgroundFetchResult, (@{\n  @\"UIBackgroundFetchResultNewData\": @(UIBackgroundFetchResultNewData),\n  @\"UIBackgroundFetchResultNoData\": @(UIBackgroundFetchResultNoData),\n  @\"UIBackgroundFetchResultFailed\": @(UIBackgroundFetchResultFailed),\n}), UIBackgroundFetchResultNoData, integerValue)\n\n\n+ (NSDictionary *)RCTFormatLocalNotification:(UILocalNotification *)notification\n{\n    NSMutableDictionary *formattedLocalNotification = [NSMutableDictionary dictionary];\n  \n    if (notification.fireDate) {\n        NSDateFormatter *formatter = [NSDateFormatter new];\n        [formatter setDateFormat:@\"yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ\"];\n        NSString *fireDateString = [formatter stringFromDate:notification.fireDate];\n        formattedLocalNotification[@\"fireDate\"] = fireDateString;\n    }\n  \n    formattedLocalNotification[@\"alertAction\"] = RCTNullIfNil(notification.alertAction);\n    formattedLocalNotification[@\"alertTitle\"] = RCTNullIfNil(notification.alertTitle);\n    formattedLocalNotification[@\"alertBody\"] = RCTNullIfNil(notification.alertBody);\n    formattedLocalNotification[@\"applicationIconBadgeNumber\"] = @(notification.applicationIconBadgeNumber);\n    formattedLocalNotification[@\"category\"] = RCTNullIfNil(notification.category);\n    formattedLocalNotification[@\"repeatInterval\"] = @(notification.repeatInterval);\n    formattedLocalNotification[@\"soundName\"] = RCTNullIfNil(notification.soundName);\n    formattedLocalNotification[@\"userInfo\"] = RCTNullIfNil(RCTJSONClean(notification.userInfo));\n    formattedLocalNotification[@\"remote\"] = @NO;\n\n    return formattedLocalNotification;\n}\n\n@end\n\n/**\n * Convert json to UNNotificationRequest\n */\n@implementation RCTConvert (UNNotificationRequest)\n\n+ (UNNotificationRequest *)UNNotificationRequest:(id)json\n{\n    NSDictionary<NSString *, id> *details = [self NSDictionary:json];\n\n    BOOL isSilent = [RCTConvert BOOL:details[@\"isSilent\"]];\n    BOOL isCritical = [RCTConvert BOOL:details[@\"isCritical\"]];\n    float criticalSoundVolume = [RCTConvert float:details[@\"criticalSoundVolume\"]];\n    NSString* identifier = [RCTConvert NSString:details[@\"id\"]];\n\n    UNMutableNotificationContent* content = [[UNMutableNotificationContent alloc] init];\n    content.title              = [RCTConvert NSString:details[@\"title\"]];\n    content.subtitle           = [RCTConvert NSString:details[@\"subtitle\"]];\n    content.body               = [RCTConvert NSString:details[@\"body\"]];\n    content.badge              = [RCTConvert NSNumber:details[@\"badge\"]];\n    content.categoryIdentifier = [RCTConvert NSString:details[@\"category\"]];\n\n    if (@available(iOS 15.0, *)) {\n        UNNotificationInterruptionLevel interruptionLevel =[RCTConvert UNNotificationInterruptionLevel:details[@\"interruptionLevel\"]];\n        if(interruptionLevel) {\n        content.interruptionLevel = interruptionLevel;\n        }\n    }\n\n    NSString* threadIdentifier = [RCTConvert NSString:details[@\"threadId\"]];\n    if (threadIdentifier){\n        content.threadIdentifier = threadIdentifier;\n    }\n\n    NSDictionary<NSString *, id> *userDateComps = [RCTConvert NSDictionary:details[@\"repeatsComponent\"]];\n    BOOL year       = [RCTConvert BOOL:userDateComps[@\"year\"]];\n    BOOL month      = [RCTConvert BOOL:userDateComps[@\"month\"]];\n    BOOL day        = [RCTConvert BOOL:userDateComps[@\"day\"]];\n    BOOL dayOfWeek  = [RCTConvert BOOL:userDateComps[@\"dayOfWeek\"]];\n    BOOL hour       = [RCTConvert BOOL:userDateComps[@\"hour\"]];\n    BOOL minute     = [RCTConvert BOOL:userDateComps[@\"minute\"]];\n    BOOL second     = [RCTConvert BOOL:userDateComps[@\"second\"]];\n\n    content.userInfo = [RCTConvert NSDictionary:details[@\"userInfo\"]];\n    if (!isSilent) {\n        if (isCritical) {\n            if (criticalSoundVolume) {\n                content.sound = [RCTConvert NSString:details[@\"sound\"]] ? [UNNotificationSound criticalSoundNamed:[RCTConvert NSString:details[@\"sound\"]] withAudioVolume:criticalSoundVolume] : [UNNotificationSound defaultCriticalSoundWithAudioVolume:criticalSoundVolume];\n            } else {\n                content.sound = [RCTConvert NSString:details[@\"sound\"]] ? [UNNotificationSound criticalSoundNamed:[RCTConvert NSString:details[@\"sound\"]]] : [UNNotificationSound defaultCriticalSound];\n            }\n        } else {\n            content.sound = [RCTConvert NSString:details[@\"sound\"]] ? [UNNotificationSound soundNamed:[RCTConvert NSString:details[@\"sound\"]]] : [UNNotificationSound defaultSound];\n        }\n    }\n\n    NSDate* fireDate = [RCTConvert NSDate:details[@\"fireDate\"]];\n    BOOL repeats = [RCTConvert BOOL:details[@\"repeats\"]];\n    NSCalendarUnit defaultDateComponents =\n        NSCalendarUnitYear |\n        NSCalendarUnitMonth |\n        NSCalendarUnitDay |\n        NSCalendarUnitHour |\n        NSCalendarUnitMinute |\n        NSCalendarUnitSecond;\n    NSCalendarUnit repeatDateComponents =\n        (year ? NSCalendarUnitYear : 0) |\n        (month ? NSCalendarUnitMonth : 0) |\n        (day ? NSCalendarUnitDay : 0) |\n        (dayOfWeek ? NSCalendarUnitWeekday : 0) |\n        (hour ? NSCalendarUnitHour : 0) |\n        (minute ? NSCalendarUnitMinute : 0) |\n        (second ? NSCalendarUnitSecond : 0);\n    NSDateComponents *triggerDate = fireDate\n        ? [[NSCalendar currentCalendar]\n           components:(repeats ? repeatDateComponents : defaultDateComponents) | NSCalendarUnitTimeZone\n           fromDate:fireDate]\n        : nil;\n\n    UNCalendarNotificationTrigger* trigger = triggerDate ? [UNCalendarNotificationTrigger triggerWithDateMatchingComponents:triggerDate repeats:repeats] : nil;\n\n    UNNotificationRequest* notification = [UNNotificationRequest requestWithIdentifier:identifier content:content trigger:trigger];\n    return notification;\n}\n\n/**\n * Pass UNNotificationRequest to JS as a json object\n */\n+ (NSDictionary *)RCTFormatUNNotificationRequest:(UNNotificationRequest*)request\n{\n    NSMutableDictionary *formattedRequest = [NSMutableDictionary dictionary];\n    \n    formattedRequest[@\"id\"] = RCTNullIfNil(request.identifier);\n    \n    UNNotificationContent *content = request.content;\n    formattedRequest[@\"title\"] = RCTNullIfNil(content.title);\n    formattedRequest[@\"subtitle\"] = RCTNullIfNil(content.subtitle);\n    formattedRequest[@\"body\"] = RCTNullIfNil(content.body);\n    formattedRequest[@\"badge\"] = RCTNullIfNil(content.badge);\n    formattedRequest[@\"sound\"] = RCTNullIfNil(content.sound);\n    formattedRequest[@\"category\"] = RCTNullIfNil(content.categoryIdentifier);\n    formattedRequest[@\"thread-id\"] = RCTNullIfNil(content.threadIdentifier);\n    formattedRequest[@\"userInfo\"] = RCTNullIfNil(RCTJSONClean(content.userInfo));\n    \n    if (request.trigger) {\n        UNCalendarNotificationTrigger* trigger = (UNCalendarNotificationTrigger*)request.trigger;\n        NSDateFormatter *formatter = [NSDateFormatter new];\n        [formatter setDateFormat:@\"yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ\"];\n        NSString *dateString = [formatter stringFromDate:trigger.nextTriggerDate];\n        formattedRequest[@\"date\"] = dateString;\n    }\n\n    return formattedRequest;\n}\n\n@end\n\n/**\n * Convert json to UNNotificationActionOptions\n */\n@implementation RCTConvert (UNNotificationActionOptions)\n\n+ (UNNotificationActionOptions)UNNotificationActionOptions:(id)json\n{\n    NSDictionary<NSString *, id> *details = [self NSDictionary:json];\n    UNNotificationActionOptions options = UNNotificationActionOptionNone;\n    if ([RCTConvert BOOL:details[@\"foreground\"]]==TRUE) {\n        options |= UNNotificationActionOptionForeground;\n    }\n    if ([RCTConvert BOOL:details[@\"destructive\"]]==TRUE) {\n        options |= UNNotificationActionOptionDestructive;\n    }\n    if ([RCTConvert BOOL:details[@\"authenticationRequired\"]]==TRUE) {\n        options |= UNNotificationActionOptionAuthenticationRequired;\n    }\n    return options;\n}\n\n@end\n\n/**\n * Convert json to UNNotificationAction\n */\n@implementation RCTConvert (UNNotificationAction)\n\n+ (UNNotificationAction *)UNNotificationAction:(id)json\n{\n    NSDictionary<NSString *, id> *details = [self NSDictionary:json];\n    NSString* identifier = [RCTConvert NSString:details[@\"id\"]];\n    NSString* title = [RCTConvert NSString:details[@\"title\"]];\n    \n    \n    UNNotificationActionOptions options = [RCTConvert UNNotificationActionOptions:details[@\"options\"]];\n    UNNotificationAction* action = details[@\"textInput\"] ? [UNTextInputNotificationAction actionWithIdentifier:identifier title:title options:options textInputButtonTitle:details[@\"textInput\"][@\"buttonTitle\"] textInputPlaceholder:details[@\"textInput\"][@\"placeholder\"]] : [UNNotificationAction actionWithIdentifier:identifier title:title options:options];\n    \n    return action;\n}\n\n@end\n\n/**\n * Convert json to UNNotificationCategory\n */\n@implementation RCTConvert (UNNotificationCategory)\n\n+ (UNNotificationCategory *)UNNotificationCategory:(id)json\n{\n    NSDictionary<NSString *, id> *details = [self NSDictionary:json];\n    \n    NSString* identifier = [RCTConvert NSString:details[@\"id\"]];\n    NSMutableArray* actions = [NSMutableArray new];\n        for (NSDictionary* action in [RCTConvert NSArray:details[@\"actions\"]]) {\n            [actions addObject:[RCTConvert UNNotificationAction:action]];\n        }\n    \n    UNNotificationCategory* category = [UNNotificationCategory categoryWithIdentifier:identifier actions:actions intentIdentifiers:@[] options:UNNotificationCategoryOptionNone];\n    \n    return category;\n}\n\n@end\n\n\n/**\n * Pass UNNotificationResponse to JS as a json object\n */\n@implementation RCTConvert (UNNotificationResponse)\n+ (NSDictionary *)RCTFormatUNNotificationResponse:(UNNotificationResponse *)response\n{\n    UNNotification* notification = response.notification;\n    NSMutableDictionary *formattedResponse = [[RCTConvert RCTFormatUNNotification:notification] mutableCopy];\n    UNNotificationContent *content = notification.request.content;\n      \n    NSMutableDictionary *userInfo = [content.userInfo mutableCopy];\n    userInfo[@\"userInteraction\"] = [NSNumber numberWithInt:1];\n    userInfo[@\"actionIdentifier\"] = response.actionIdentifier;\n    \n    formattedResponse[@\"badge\"] = RCTNullIfNil(content.badge);\n    formattedResponse[@\"sound\"] = RCTNullIfNil(content.sound);\n    formattedResponse[@\"userInfo\"] = RCTNullIfNil(RCTJSONClean(userInfo));\n    formattedResponse[@\"actionIdentifier\"] = RCTNullIfNil(response.actionIdentifier);\n      \n    NSString* userText = [response isKindOfClass:[UNTextInputNotificationResponse class]] ? ((UNTextInputNotificationResponse *)response).userText : nil;\n    if (userText) {\n      formattedResponse[@\"userText\"] = RCTNullIfNil(userText);\n    }\n      \n    return formattedResponse;\n}\n@end\n\n/**\n * Pass UNNotification to JS as a json object\n */\n@implementation RCTConvert (UNNotification)\n\n+ (NSDictionary *)RCTFormatUNNotification:(UNNotification *)notification\n{\n    NSMutableDictionary *formattedNotification = [NSMutableDictionary dictionary];\n    UNNotificationContent *content = notification.request.content;\n  \n    formattedNotification[@\"identifier\"] = notification.request.identifier;\n  \n    if (notification.date) {\n      NSDateFormatter *formatter = [NSDateFormatter new];\n      [formatter setDateFormat:@\"yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ\"];\n      NSString *dateString = [formatter stringFromDate:notification.date];\n      formattedNotification[@\"date\"] = dateString;\n    }\n  \n    formattedNotification[@\"title\"] = RCTNullIfNil(content.title);\n    formattedNotification[@\"subtitle\"] = RCTNullIfNil(content.subtitle);\n    formattedNotification[@\"body\"] = RCTNullIfNil(content.body);\n    formattedNotification[@\"badge\"] = RCTNullIfNil(content.badge);\n    formattedNotification[@\"sound\"] = RCTNullIfNil(content.sound);\n    formattedNotification[@\"category\"] = RCTNullIfNil(content.categoryIdentifier);\n    formattedNotification[@\"thread-id\"] = RCTNullIfNil(content.threadIdentifier);\n    formattedNotification[@\"userInfo\"] = RCTNullIfNil(RCTJSONClean(content.userInfo));\n  \n    return formattedNotification;\n}\n\n@end\n\n"
  },
  {
    "path": "ios/RNCPushNotificationIOS.h",
    "content": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#import <React/RCTEventEmitter.h>\n#import <UserNotifications/UserNotifications.h>\n\nextern NSString *const RNCRemoteNotificationReceived;\n\n@interface RNCPushNotificationIOS : RCTEventEmitter\n\ntypedef void (^RNCRemoteNotificationCallback)(UIBackgroundFetchResult result);\n\n#if !TARGET_OS_TV\n+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;\n+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;\n+ (void)didReceiveRemoteNotification:(NSDictionary *)notification;\n+ (void)didReceiveRemoteNotification:(NSDictionary *)notification fetchCompletionHandler:(RNCRemoteNotificationCallback)completionHandler;\n+ (void)didReceiveLocalNotification:(UILocalNotification *)notification;\n+ (void)didReceiveNotificationResponse:(UNNotificationResponse *)response API_AVAILABLE(ios(10.0));\n+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;\n#endif\n\n@end\n"
  },
  {
    "path": "ios/RNCPushNotificationIOS.m",
    "content": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n#import \"RNCPushNotificationIOS.h\"\n#import \"RCTConvert+Notification.h\"\n#import <React/RCTBridge.h>\n#import <React/RCTConvert.h>\n#import <React/RCTEventDispatcher.h>\n\nNSString *const RCTRemoteNotificationReceived = @\"RemoteNotificationReceived\";\n\nstatic NSString *const kLocalNotificationReceived = @\"LocalNotificationReceived\";\nstatic NSString *const kRemoteNotificationsRegistered = @\"RemoteNotificationsRegistered\";\nstatic NSString *const kRemoteNotificationRegistrationFailed = @\"RemoteNotificationRegistrationFailed\";\n\nstatic NSString *const kErrorUnableToRequestPermissions = @\"E_UNABLE_TO_REQUEST_PERMISSIONS\";\n\n#if !TARGET_OS_TV\n@interface RNCPushNotificationIOS ()\n@property (nonatomic, strong) NSMutableDictionary *remoteNotificationCallbacks;\n@end\n\n\n#else\n@interface RNCPushNotificationIOS () <NativePushNotificationManagerIOS>\n@end\n#endif //TARGET_OS_TV\n\n@implementation RNCPushNotificationIOS\n\nRCT_EXPORT_MODULE()\n\n- (dispatch_queue_t)methodQueue\n{\n  return dispatch_get_main_queue();\n}\n\n#if !TARGET_OS_TV\n- (void)startObserving\n{\n  [[NSNotificationCenter defaultCenter] addObserver:self\n                                           selector:@selector(handleLocalNotificationReceived:)\n                                               name:kLocalNotificationReceived\n                                             object:nil];\n  [[NSNotificationCenter defaultCenter] addObserver:self\n                                           selector:@selector(handleRemoteNotificationReceived:)\n                                               name:RCTRemoteNotificationReceived\n                                             object:nil];\n  [[NSNotificationCenter defaultCenter] addObserver:self\n                                           selector:@selector(handleRemoteNotificationsRegistered:)\n                                               name:kRemoteNotificationsRegistered\n                                             object:nil];\n  [[NSNotificationCenter defaultCenter] addObserver:self\n                                           selector:@selector(handleRemoteNotificationRegistrationError:)\n                                               name:kRemoteNotificationRegistrationFailed\n                                             object:nil];\n}\n\n- (void)stopObserving\n{\n  [[NSNotificationCenter defaultCenter] removeObserver:self];\n}\n\n- (NSArray<NSString *> *)supportedEvents\n{\n  return @[@\"localNotificationReceived\",\n           @\"remoteNotificationReceived\",\n           @\"remoteNotificationsRegistered\",\n           @\"remoteNotificationRegistrationError\"];\n}\n\n+ (void)didRegisterUserNotificationSettings:(__unused UIUserNotificationSettings *)notificationSettings\n{\n}\n\n+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken\n{\n  NSMutableString *hexString = [NSMutableString string];\n  NSUInteger deviceTokenLength = deviceToken.length;\n  const unsigned char *bytes = deviceToken.bytes;\n  for (NSUInteger i = 0; i < deviceTokenLength; i++) {\n    [hexString appendFormat:@\"%02x\", bytes[i]];\n  }\n  [[NSNotificationCenter defaultCenter] postNotificationName:kRemoteNotificationsRegistered\n                                                      object:self\n                                                    userInfo:@{@\"deviceToken\" : [hexString copy]}];\n}\n\n+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error\n{\n  [[NSNotificationCenter defaultCenter] postNotificationName:kRemoteNotificationRegistrationFailed\n                                                      object:self\n                                                    userInfo:@{@\"error\": error}];\n}\n\n+ (void)didReceiveRemoteNotification:(NSDictionary *)notification\n{\n  NSDictionary *userInfo = @{@\"notification\": notification};\n  [[NSNotificationCenter defaultCenter] postNotificationName:RCTRemoteNotificationReceived\n                                                      object:self\n                                                    userInfo:userInfo];\n}\n\n+ (void)didReceiveRemoteNotification:(NSDictionary *)notification\n              fetchCompletionHandler:(RNCRemoteNotificationCallback)completionHandler\n{\n  NSDictionary *userInfo = @{@\"notification\": notification, @\"completionHandler\": completionHandler};\n  [[NSNotificationCenter defaultCenter] postNotificationName:RCTRemoteNotificationReceived\n                                                      object:self\n                                                    userInfo:userInfo];\n}\n\n+ (void)didReceiveLocalNotification:(UILocalNotification *)notification\n{\n    [[NSNotificationCenter defaultCenter] postNotificationName:kLocalNotificationReceived\n                                                      object:self\n                                                    userInfo:[RCTConvert RCTFormatLocalNotification:notification]];\n}\n\n+ (void)didReceiveNotificationResponse:(UNNotificationResponse *)response\nAPI_AVAILABLE(ios(10.0)) {\n    [[NSNotificationCenter defaultCenter] postNotificationName:kLocalNotificationReceived\n                                                      object:self\n                                                    userInfo:[RCTConvert RCTFormatUNNotificationResponse:response]];\n}\n\n- (void)handleLocalNotificationReceived:(NSNotification *)notification\n{\n  [self sendEventWithName:@\"localNotificationReceived\" body:notification.userInfo];\n}\n\n- (void)handleRemoteNotificationReceived:(NSNotification *)notification\n{\n  NSMutableDictionary *remoteNotification = [NSMutableDictionary dictionaryWithDictionary:notification.userInfo[@\"notification\"]];\n  RNCRemoteNotificationCallback completionHandler = notification.userInfo[@\"completionHandler\"];\n  NSString *notificationId = [[NSUUID UUID] UUIDString];\n  remoteNotification[@\"notificationId\"] = notificationId;\n  remoteNotification[@\"remote\"] = @YES;\n  if (completionHandler) {\n    if (!self.remoteNotificationCallbacks) {\n      // Lazy initialization\n      self.remoteNotificationCallbacks = [NSMutableDictionary dictionary];\n    }\n    self.remoteNotificationCallbacks[notificationId] = completionHandler;\n  }\n  \n  [self sendEventWithName:@\"remoteNotificationReceived\" body:remoteNotification];\n}\n\n- (void)handleRemoteNotificationsRegistered:(NSNotification *)notification\n{\n  [self sendEventWithName:@\"remoteNotificationsRegistered\" body:notification.userInfo];\n}\n\n- (void)handleRemoteNotificationRegistrationError:(NSNotification *)notification\n{\n  NSError *error = notification.userInfo[@\"error\"];\n  NSDictionary *errorDetails = @{\n    @\"message\": error.localizedDescription,\n    @\"code\": @(error.code),\n    @\"details\": error.userInfo,\n  };\n  [self sendEventWithName:@\"remoteNotificationRegistrationError\" body:errorDetails];\n}\n\nRCT_EXPORT_METHOD(onFinishRemoteNotification:(NSString *)notificationId fetchResult:(UIBackgroundFetchResult)result)\n{\n  if (self.remoteNotificationCallbacks) {\n    RNCRemoteNotificationCallback completionHandler = [self.remoteNotificationCallbacks objectForKey:notificationId];\n    if (completionHandler) {\n      completionHandler(result);\n    }\n    [self.remoteNotificationCallbacks removeObjectForKey:notificationId];\n  }\n}\n\n/**\n * Update the application icon badge number on the home screen\n */\nRCT_EXPORT_METHOD(setApplicationIconBadgeNumber:(NSInteger)number)\n{\n  RCTSharedApplication().applicationIconBadgeNumber = number;\n}\n\n/**\n * Get the current application icon badge number on the home screen\n */\nRCT_EXPORT_METHOD(getApplicationIconBadgeNumber:(RCTResponseSenderBlock)callback)\n{\n  callback(@[@(RCTSharedApplication().applicationIconBadgeNumber)]);\n}\n\nRCT_EXPORT_METHOD(requestPermissions:(NSDictionary *)permissions\n                  resolver:(RCTPromiseResolveBlock)resolve\n                  rejecter:(RCTPromiseRejectBlock)reject)\n{\n  if (RCTRunningInAppExtension()) {\n    reject(kErrorUnableToRequestPermissions, nil, RCTErrorWithMessage(@\"Requesting push notifications is currently unavailable in an app extension\"));\n    return;\n  }\n    \n  // Add a listener to make sure that startObserving has been called\n  [self addListener:@\"remoteNotificationsRegistered\"];\n  \n  UNAuthorizationOptions types = UNAuthorizationOptionNone;\n  if (permissions) {\n    if ([RCTConvert BOOL:permissions[@\"alert\"]]) {\n      types |= UNAuthorizationOptionAlert;\n    }\n    if ([RCTConvert BOOL:permissions[@\"badge\"]]) {\n      types |= UNAuthorizationOptionBadge;\n    }\n    if ([RCTConvert BOOL:permissions[@\"sound\"]]) {\n      types |= UNAuthorizationOptionSound;\n    }\n    if (@available(iOS 12, *)) {\n        if ([RCTConvert BOOL:permissions[@\"critical\"]]) {\n            types |= UNAuthorizationOptionCriticalAlert;\n        }\n    }\n  } else {\n    types = UNAuthorizationOptionAlert | UNAuthorizationOptionBadge | UNAuthorizationOptionSound;\n  }\n  \n  [UNUserNotificationCenter.currentNotificationCenter\n    requestAuthorizationWithOptions:types\n    completionHandler:^(BOOL granted, NSError *_Nullable error) {\n\n    if (error != NULL) {\n      reject(@\"-1\", @\"Error - Push authorization request failed.\", error);\n    } else {\n      dispatch_async(dispatch_get_main_queue(), ^(void){\n        [RCTSharedApplication() registerForRemoteNotifications];\n      });\n      [UNUserNotificationCenter.currentNotificationCenter getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings * _Nonnull settings) {\n        resolve(RCTPromiseResolveValueForUNNotificationSettings(settings));\n      }];\n    }\n  }];\n}\n\nRCT_EXPORT_METHOD(abandonPermissions)\n{\n  [RCTSharedApplication() unregisterForRemoteNotifications];\n}\n\nRCT_EXPORT_METHOD(checkPermissions:(RCTResponseSenderBlock)callback)\n{\n  if (RCTRunningInAppExtension()) {\n    callback(@[RCTSettingsDictForUNNotificationSettings(NO, NO, NO, NO, NO, NO, UNAuthorizationStatusNotDetermined)]);\n    return;\n  }\n  \n  [UNUserNotificationCenter.currentNotificationCenter getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings * _Nonnull settings) {\n    callback(@[RCTPromiseResolveValueForUNNotificationSettings(settings)]);\n    }];\n  }\n\nstatic inline NSDictionary *RCTPromiseResolveValueForUNNotificationSettings(UNNotificationSettings* _Nonnull settings) {\n  return RCTSettingsDictForUNNotificationSettings(settings.alertSetting == UNNotificationSettingEnabled,\n                                                  settings.badgeSetting == UNNotificationSettingEnabled,\n                                                  settings.soundSetting == UNNotificationSettingEnabled,\n                                                  @available(iOS 12, *) && settings.criticalAlertSetting == UNNotificationSettingEnabled,\n                                                  settings.lockScreenSetting == UNNotificationSettingEnabled,\n                                                  settings.notificationCenterSetting == UNNotificationSettingEnabled,\n                                                  settings.authorizationStatus);\n  }\n\nstatic inline NSDictionary *RCTSettingsDictForUNNotificationSettings(BOOL alert, BOOL badge, BOOL sound, BOOL critical, BOOL lockScreen, BOOL notificationCenter, UNAuthorizationStatus authorizationStatus) {\n  return @{@\"alert\": @(alert), @\"badge\": @(badge), @\"sound\": @(sound), @\"critical\": @(critical), @\"lockScreen\": @(lockScreen), @\"notificationCenter\": @(notificationCenter), @\"authorizationStatus\": @(authorizationStatus)};\n  }\n\n/**\n * Method deprecated in iOS 10.0\n * TODO: This method will be removed in the next major version\n */\nRCT_EXPORT_METHOD(presentLocalNotification:(UILocalNotification *)notification)\n{\n  [RCTSharedApplication() presentLocalNotificationNow:notification];\n}\n\n/**\n * Method deprecated in iOS 10.0\n * TODO: This method will be removed in the next major version\n */\nRCT_EXPORT_METHOD(scheduleLocalNotification:(UILocalNotification *)notification)\n{\n  [RCTSharedApplication() scheduleLocalNotification:notification];\n}\n\nRCT_EXPORT_METHOD(addNotificationRequest:(UNNotificationRequest*)request)\n{\n    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n    NSString *imageUrl = request.content.userInfo[@\"image\"];\n    NSMutableDictionary *fcmInfo = request.content.userInfo[@\"fcm_options\"];\n    if(fcmInfo != nil && fcmInfo[@\"image\"] != nil) {\n        imageUrl = fcmInfo[@\"image\"];\n    }\n    if(imageUrl != nil) {\n        NSURL *attachmentURL = [NSURL URLWithString:imageUrl];\n        [self loadAttachmentForUrl:attachmentURL completionHandler:^(UNNotificationAttachment *attachment) {\n            if (attachment) {\n                UNMutableNotificationContent *bestAttemptRequest = [request.content mutableCopy];\n                [bestAttemptRequest setAttachments: [NSArray arrayWithObject:attachment]];\n                UNNotificationRequest* notification = [UNNotificationRequest requestWithIdentifier:request.identifier content:bestAttemptRequest trigger:request.trigger];\n                [center addNotificationRequest:notification\n                            withCompletionHandler:^(NSError* _Nullable error) {\n                    if (!error) {\n                        NSLog(@\"image notifier request success\");\n                        }\n                    }\n                ];\n            }\n        }];\n    } else {\n        [center addNotificationRequest:request\n                 withCompletionHandler:^(NSError* _Nullable error) {\n            if (!error) {\n                NSLog(@\"notifier request success\");\n                }\n            }\n        ];\n    }\n    \n}\n\n- (void)loadAttachmentForUrl:(NSURL *)attachmentURL\n           completionHandler:(void (^)(UNNotificationAttachment *))completionHandler {\n  __block UNNotificationAttachment *attachment = nil;\n\n  NSURLSession *session = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];\n\n  [[session\n      downloadTaskWithURL:attachmentURL\n        completionHandler:^(NSURL *temporaryFileLocation, NSURLResponse *response, NSError *error) {\n          if (error != nil) {\n            NSLog( @\"Failed to download image given URL %@, error: %@\\n\", attachmentURL, error);\n            completionHandler(attachment);\n            return;\n          }\n\n          NSFileManager *fileManager = [NSFileManager defaultManager];\n          NSString *fileExtension =\n              [NSString stringWithFormat:@\".%@\", [response.suggestedFilename pathExtension]];\n          NSURL *localURL = [NSURL\n              fileURLWithPath:[temporaryFileLocation.path stringByAppendingString:fileExtension]];\n          [fileManager moveItemAtURL:temporaryFileLocation toURL:localURL error:&error];\n          if (error) {\n            NSLog( @\"Failed to move the image file to local location: %@, error: %@\\n\", localURL, error);\n            completionHandler(attachment);\n            return;\n          }\n\n          attachment = [UNNotificationAttachment attachmentWithIdentifier:@\"\"\n                                                                      URL:localURL\n                                                                  options:nil\n                                                                    error:&error];\n          if (error) {\n              NSLog(@\"Failed to create attachment with URL %@, error: %@\\n\", localURL, error);\n            completionHandler(attachment);\n            return;\n          }\n          completionHandler(attachment);\n        }] resume];\n}\n\nRCT_EXPORT_METHOD(setNotificationCategories:(NSArray*)categories)\n{\n    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n    NSMutableSet<UNNotificationCategory *>* categorySet = nil;\n    \n    if ([categories count] > 0) {\n        categorySet = [NSMutableSet new];\n        for(NSDictionary* category in categories){\n            [categorySet addObject:[RCTConvert UNNotificationCategory:category]];\n        }\n    }\n    [center setNotificationCategories:categorySet];\n}\n\n/**\n * Method not Available in iOS11+\n * TODO: This method will be removed in the next major version\n */\nRCT_EXPORT_METHOD(cancelAllLocalNotifications)\n{\n  [RCTSharedApplication() cancelAllLocalNotifications];\n}\n\nRCT_EXPORT_METHOD(removeAllPendingNotificationRequests)\n{\n    if ([UNUserNotificationCenter class]) {\n        UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n        [center removeAllPendingNotificationRequests];\n    }\n}\n\nRCT_EXPORT_METHOD(removePendingNotificationRequests:(NSArray<NSString *> *)identifiers)\n{\n    if ([UNUserNotificationCenter class]) {\n        UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n        [center removePendingNotificationRequestsWithIdentifiers:identifiers];\n    }\n}\n\n/**\n * Method deprecated in iOS 10.0\n * TODO: This method will be removed in the next major version\n */\nRCT_EXPORT_METHOD(cancelLocalNotifications:(NSDictionary<NSString *, id> *)userInfo)\n{\n  for (UILocalNotification *notification in RCTSharedApplication().scheduledLocalNotifications) {\n    __block BOOL matchesAll = YES;\n    NSDictionary<NSString *, id> *notificationInfo = notification.userInfo;\n    // Note: we do this with a loop instead of just `isEqualToDictionary:`\n    // because we only require that all specified userInfo values match the\n    // notificationInfo values - notificationInfo may contain additional values\n    // which we don't care about.\n    [userInfo enumerateKeysAndObjectsUsingBlock:^(NSString *key, id obj, BOOL *stop) {\n      if (![notificationInfo[key] isEqual:obj]) {\n        matchesAll = NO;\n        *stop = YES;\n      }\n    }];\n    if (matchesAll) {\n      [RCTSharedApplication() cancelLocalNotification:notification];\n    }\n  }\n}\n\n\nRCT_EXPORT_METHOD(getInitialNotification:(RCTPromiseResolveBlock)resolve\n                  reject:(__unused RCTPromiseRejectBlock)reject)\n{\n    NSMutableDictionary<NSString *, id> *initialNotification =\n    [self.bridge.launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey] mutableCopy];\n    UILocalNotification *initialLocalNotification =\n    self.bridge.launchOptions[UIApplicationLaunchOptionsLocalNotificationKey];\n  \n    if (initialNotification) {\n      initialNotification[@\"userInteraction\"] = [NSNumber numberWithInt:1];\n      initialNotification[@\"remote\"] = @YES;\n      resolve(initialNotification);\n    } else if (initialLocalNotification) {\n      resolve([RCTConvert RCTFormatLocalNotification:initialLocalNotification]);\n    } else {\n      resolve((id)kCFNull);\n    }\n}\n\n/**\n * Method deprecated in iOS 10.0\n * TODO: This method will be removed in the next major version\n */\nRCT_EXPORT_METHOD(getScheduledLocalNotifications:(RCTResponseSenderBlock)callback)\n{\n  NSArray<UILocalNotification *> *scheduledLocalNotifications = RCTSharedApplication().scheduledLocalNotifications;\n  NSMutableArray<NSDictionary *> *formattedScheduledLocalNotifications = [NSMutableArray new];\n  for (UILocalNotification *notification in scheduledLocalNotifications) {\n      [formattedScheduledLocalNotifications addObject:[RCTConvert RCTFormatLocalNotification:notification]];\n  }\n  callback(@[formattedScheduledLocalNotifications]);\n}\n\nRCT_EXPORT_METHOD(getPendingNotificationRequests: (RCTResponseSenderBlock)callback)\n{\n    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n    [center getPendingNotificationRequestsWithCompletionHandler:^(NSArray<UNNotificationRequest *> *_Nonnull requests) {\n      NSMutableArray<NSDictionary *> *formattedRequests = [NSMutableArray new];\n      \n      for (UNNotificationRequest *request in requests) {\n          [formattedRequests addObject:[RCTConvert RCTFormatUNNotificationRequest:request]];\n      }\n      callback(@[formattedRequests]);\n    }];\n}\n\nRCT_EXPORT_METHOD(removeAllDeliveredNotifications)\n{\n  if ([UNUserNotificationCenter class]) {\n    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n    [center removeAllDeliveredNotifications];\n  }\n}\n\nRCT_EXPORT_METHOD(removeDeliveredNotifications:(NSArray<NSString *> *)identifiers)\n{\n  if ([UNUserNotificationCenter class]) {\n    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n    [center removeDeliveredNotificationsWithIdentifiers:identifiers];\n  }\n}\n\nRCT_EXPORT_METHOD(getDeliveredNotifications:(RCTResponseSenderBlock)callback)\n{\n  if ([UNUserNotificationCenter class]) {\n    UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];\n    [center getDeliveredNotificationsWithCompletionHandler:^(NSArray<UNNotification *> *_Nonnull notifications) {\n      NSMutableArray<NSDictionary *> *formattedNotifications = [NSMutableArray new];\n      \n      for (UNNotification *notification in notifications) {\n          [formattedNotifications addObject:[RCTConvert RCTFormatUNNotification:notification]];\n      }\n      callback(@[formattedNotifications]);\n    }];\n  }\n}\n\n#else //TARGET_OS_TV\n\nRCT_EXPORT_METHOD(onFinishRemoteNotification:(NSString *)notificationId fetchResult:(NSString *)fetchResult)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(setApplicationIconBadgeNumber:(double)number)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(getApplicationIconBadgeNumber:(RCTResponseSenderBlock)callback)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(requestPermissions:(JS::NativePushNotificationManagerIOS::SpecRequestPermissionsPermission &)permissions\n                 resolve:(RCTPromiseResolveBlock)resolve\n                 reject:(RCTPromiseRejectBlock)reject)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(abandonPermissions)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(checkPermissions:(RCTResponseSenderBlock)callback)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(presentLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(scheduleLocalNotification:(JS::NativePushNotificationManagerIOS::Notification &)notification)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(cancelAllLocalNotifications)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(cancelLocalNotifications:(NSDictionary<NSString *, id> *)userInfo)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(getInitialNotification:(RCTPromiseResolveBlock)resolve\n                  reject:(__unused RCTPromiseRejectBlock)reject)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(getScheduledLocalNotifications:(RCTResponseSenderBlock)callback)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(removeAllDeliveredNotifications)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(removeDeliveredNotifications:(NSArray<NSString *> *)identifiers)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\nRCT_EXPORT_METHOD(getDeliveredNotifications:(RCTResponseSenderBlock)callback)\n{\n  RCTLogError(@\"Not implemented: %@\", NSStringFromSelector(_cmd));\n}\n\n\n- (NSArray<NSString *> *)supportedEvents\n{\n  return @[];\n}\n\n#endif //TARGET_OS_TV\n\n@end\n"
  },
  {
    "path": "js/index.js",
    "content": "/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport {NativeEventEmitter, NativeModules} from 'react-native';\nimport invariant from 'invariant';\nimport type {\n  NotificationAlert,\n  NotificationRequest,\n  NotificationCategory,\n  NotificationAction,\n} from './types';\nconst {RNCPushNotificationIOS} = NativeModules;\n\nconst PushNotificationEmitter = new NativeEventEmitter(RNCPushNotificationIOS);\n\nconst _notifHandlers = new Map();\n\nconst DEVICE_NOTIF_EVENT = 'remoteNotificationReceived';\nconst NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered';\nconst NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError';\nconst DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived';\n\nexport type {\n  NotificationAlert,\n  NotificationRequest,\n  NotificationCategory,\n  NotificationAction,\n};\n\nexport type ContentAvailable = 1 | null | void;\n\nexport type FetchResult = {\n  NewData: string,\n  NoData: string,\n  ResultFailed: string,\n};\n\nexport type AuthorizationStatus = {\n  UNAuthorizationStatusNotDetermined: 0,\n  UNAuthorizationStatusDenied: 1,\n  UNAuthorizationStatusAuthorized: 2,\n  UNAuthorizationStatusProvisional: 3,\n};\n\n/**\n * An event emitted by PushNotificationIOS.\n */\nexport type PushNotificationEventName = $Keys<{\n  /**\n   * Fired when a remote notification is received. The handler will be invoked\n   * with an instance of `PushNotificationIOS`.\n   */\n  notification: string,\n  /**\n   * Fired when a local notification is received. The handler will be invoked\n   * with an instance of `PushNotificationIOS`.\n   */\n  localNotification: string,\n  /**\n   * Fired when the user registers for remote notifications. The handler will be\n   * invoked with a hex string representing the deviceToken.\n   */\n  register: string,\n  /**\n   * Fired when the user fails to register for remote notifications. Typically\n   * occurs when APNS is having issues, or the device is a simulator. The\n   * handler will be invoked with {message: string, code: number, details: any}.\n   */\n  registrationError: string,\n}>;\n\n/**\n *\n * Handle push notifications for your app, including permission handling and\n * icon badge number.\n *\n * See https://reactnative.dev/docs/pushnotificationios.html\n */\nclass PushNotificationIOS {\n  _data: Object;\n  _alert: string | NotificationAlert;\n  _title: string;\n  _subtitle: string;\n  _sound: string;\n  _category: string;\n  _contentAvailable: ContentAvailable;\n  _badgeCount: number;\n  _notificationId: string;\n  /**\n   * The id of action the user has taken taken.\n   */\n  _actionIdentifier: ?string;\n  /**\n   * The text user has input if user responded with a text action.\n   */\n  _userText: ?string;\n  _isRemote: boolean;\n  _remoteNotificationCompleteCallbackCalled: boolean;\n  _threadID: string;\n  _fireDate: string | Date;\n\n  static FetchResult: FetchResult = {\n    NewData: 'UIBackgroundFetchResultNewData',\n    NoData: 'UIBackgroundFetchResultNoData',\n    ResultFailed: 'UIBackgroundFetchResultFailed',\n  };\n\n  static AuthorizationStatus: AuthorizationStatus = {\n    UNAuthorizationStatusNotDetermined: 0,\n    UNAuthorizationStatusDenied: 1,\n    UNAuthorizationStatusAuthorized: 2,\n    UNAuthorizationStatusProvisional: 3,\n  };\n\n  /**\n   * Schedules the localNotification for immediate presentation.\n   * @deprecated use `addNotificationRequest` instead\n   */\n  static presentLocalNotification(details: Object) {\n    RNCPushNotificationIOS.presentLocalNotification(details);\n  }\n\n  /**\n   * Schedules the localNotification for future presentation.\n   * @deprecated use `addNotificationRequest` instead\n   */\n  static scheduleLocalNotification(details: Object) {\n    RNCPushNotificationIOS.scheduleLocalNotification(details);\n  }\n\n  /**\n   * Sends notificationRequest to notification center at specified firedate.\n   * Fires immediately if firedate is not set.\n   */\n  static addNotificationRequest(request: NotificationRequest) {\n    const handledRequest =\n      request.fireDate instanceof Date\n        ? {...request, fireDate: request.fireDate.toISOString()}\n        : request;\n    const finalRequest = {\n      ...handledRequest,\n      repeatsComponent: request.repeatsComponent || {},\n    };\n\n    RNCPushNotificationIOS.addNotificationRequest(finalRequest);\n  }\n\n  /**\n   * Sets notification category to notification center.\n   * Used to set specific actions for notifications that contains specified category\n   */\n  static setNotificationCategories(categories: NotificationCategory[]) {\n    RNCPushNotificationIOS.setNotificationCategories(categories);\n  }\n\n  /**\n   * Cancels all scheduled localNotifications.\n   * @deprecated use `removeAllPendingNotificationRequests` instead\n   * - This method is deprecated in iOS 10 and will be removed from future release\n   */\n  static cancelAllLocalNotifications() {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.cancelAllLocalNotifications();\n  }\n\n  /**\n   * Removes all pending notifications\n   */\n  static removeAllPendingNotificationRequests() {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.removeAllPendingNotificationRequests();\n  }\n\n  /**\n   * Removes pending notifications with given identifier strings.\n   */\n  static removePendingNotificationRequests(identifiers: string[]) {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.removePendingNotificationRequests(identifiers);\n  }\n\n  /**\n   * Remove all delivered notifications from Notification Center.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#removealldeliverednotifications\n   */\n  static removeAllDeliveredNotifications(): void {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.removeAllDeliveredNotifications();\n  }\n\n  /**\n   * Provides you with a list of the app’s notifications that are still displayed in Notification Center.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getdeliverednotifications\n   */\n  static getDeliveredNotifications(\n    callback: (notifications: Array<Object>) => void,\n  ): void {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.getDeliveredNotifications(callback);\n  }\n\n  /**\n   * Removes the specified notifications from Notification Center\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#removedeliverednotifications\n   */\n  static removeDeliveredNotifications(identifiers: Array<string>): void {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.removeDeliveredNotifications(identifiers);\n  }\n\n  /**\n   * Sets the badge number for the app icon on the home screen.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#setapplicationiconbadgenumber\n   */\n  static setApplicationIconBadgeNumber(number: number) {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.setApplicationIconBadgeNumber(number);\n  }\n\n  /**\n   * Gets the current badge number for the app icon on the home screen.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getapplicationiconbadgenumber\n   */\n  static getApplicationIconBadgeNumber(callback: Function) {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.getApplicationIconBadgeNumber(callback);\n  }\n\n  /**\n   * Cancel local notifications.\n   * @deprecated - use `removePendingNotifications`\n   * See https://reactnative.dev/docs/pushnotificationios.html#cancellocalnotification\n   */\n  static cancelLocalNotifications(userInfo: Object) {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.cancelLocalNotifications(userInfo);\n  }\n\n  /**\n   * Gets the local notifications that are currently scheduled.\n   * @deprecated - use `getPendingNotificationRequests`\n   */\n  static getScheduledLocalNotifications(callback: Function) {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.getScheduledLocalNotifications(callback);\n  }\n\n  /**\n   * Gets the pending local notification requests.\n   */\n  static getPendingNotificationRequests(\n    callback: (requests: NotificationRequest[]) => void,\n  ) {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.getPendingNotificationRequests(callback);\n  }\n\n  /**\n   * Attaches a listener to remote or local notification events while the app\n   * is running in the foreground or the background.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#addeventlistener\n   */\n  static addEventListener(type: PushNotificationEventName, handler: Function) {\n    invariant(\n      type === 'notification' ||\n        type === 'register' ||\n        type === 'registrationError' ||\n        type === 'localNotification',\n      'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n    );\n    let listener;\n    if (type === 'notification') {\n      listener = PushNotificationEmitter.addListener(\n        DEVICE_NOTIF_EVENT,\n        (notifData) => {\n          handler(new PushNotificationIOS(notifData));\n        },\n      );\n    } else if (type === 'localNotification') {\n      listener = PushNotificationEmitter.addListener(\n        DEVICE_LOCAL_NOTIF_EVENT,\n        (notifData) => {\n          handler(new PushNotificationIOS(notifData));\n        },\n      );\n    } else if (type === 'register') {\n      listener = PushNotificationEmitter.addListener(\n        NOTIF_REGISTER_EVENT,\n        (registrationInfo) => {\n          handler(registrationInfo.deviceToken);\n        },\n      );\n    } else if (type === 'registrationError') {\n      listener = PushNotificationEmitter.addListener(\n        NOTIF_REGISTRATION_ERROR_EVENT,\n        (errorInfo) => {\n          handler(errorInfo);\n        },\n      );\n    }\n    _notifHandlers.set(type, listener);\n  }\n\n  /**\n   * Removes the event listener. Do this in `componentWillUnmount` to prevent\n   * memory leaks.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#removeeventlistener\n   */\n  static removeEventListener(type: PushNotificationEventName) {\n    invariant(\n      type === 'notification' ||\n        type === 'register' ||\n        type === 'registrationError' ||\n        type === 'localNotification',\n      'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n    );\n    const listener = _notifHandlers.get(type);\n    if (!listener) {\n      return;\n    }\n    listener.remove();\n    _notifHandlers.delete(type);\n  }\n\n  /**\n   * Requests notification permissions from iOS, prompting the user's\n   * dialog box. By default, it will request all notification permissions, but\n   * a subset of these can be requested by passing a map of requested\n   * permissions.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#requestpermissions\n   */\n  static requestPermissions(permissions?: {\n    alert?: boolean,\n    badge?: boolean,\n    sound?: boolean,\n    critical?: boolean,\n  }): Promise<{\n    alert: boolean,\n    badge: boolean,\n    sound: boolean,\n    critical: boolean,\n  }> {\n    let requestedPermissions = {\n      alert: true,\n      badge: true,\n      sound: true,\n    };\n    if (permissions) {\n      requestedPermissions = {\n        alert: !!permissions.alert,\n        badge: !!permissions.badge,\n        sound: !!permissions.sound,\n        critical: !!permissions.critical,\n      };\n    }\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    return RNCPushNotificationIOS.requestPermissions(requestedPermissions);\n  }\n\n  /**\n   * Unregister for all remote notifications received via Apple Push Notification service.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#abandonpermissions\n   */\n  static abandonPermissions() {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.abandonPermissions();\n  }\n\n  /**\n   * See what push permissions are currently enabled. `callback` will be\n   * invoked with a `permissions` object.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#checkpermissions\n   */\n  static checkPermissions(callback: Function) {\n    invariant(typeof callback === 'function', 'Must provide a valid callback');\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.checkPermissions(callback);\n  }\n\n  /**\n   * This method returns a promise that resolves to either the notification\n   * object if the app was launched by a push notification, or `null` otherwise.\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getinitialnotification\n   */\n  static getInitialNotification(): Promise<?PushNotificationIOS> {\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    return RNCPushNotificationIOS.getInitialNotification().then(\n      (notification) => {\n        return notification && new PushNotificationIOS(notification);\n      },\n    );\n  }\n\n  /**\n   * You will never need to instantiate `PushNotificationIOS` yourself.\n   * Listening to the `notification` event and invoking\n   * `getInitialNotification` is sufficient\n   *\n   */\n  constructor(nativeNotif: Object) {\n    this._data = {};\n    this._remoteNotificationCompleteCallbackCalled = false;\n    this._isRemote = nativeNotif.remote;\n    if (this._isRemote) {\n      this._notificationId = nativeNotif.notificationId;\n    }\n\n    this._actionIdentifier = nativeNotif.actionIdentifier;\n    this._userText = nativeNotif.userText;\n    if (nativeNotif.remote) {\n      // Extract data from Apple's `aps` dict as defined:\n      // https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html\n      Object.keys(nativeNotif).forEach((notifKey) => {\n        const notifVal = nativeNotif[notifKey];\n\n        if (notifKey === 'aps') {\n          this._alert = notifVal.alert;\n          this._title = notifVal?.alertTitle;\n          this._subtitle = notifVal?.subtitle;\n          this._sound = notifVal.sound;\n          this._badgeCount = notifVal.badge;\n          this._category = notifVal.category;\n          this._contentAvailable = notifVal['content-available'];\n          this._threadID = notifVal['thread-id'];\n          this._fireDate = notifVal.fireDate;\n        } else {\n          this._data[notifKey] = notifVal;\n        }\n      });\n    } else {\n      // Local notifications aren't being sent down with `aps` dict.\n      // TODO: remove applicationIconBadgeNumber on next major version\n      this._badgeCount =\n        nativeNotif.badge || nativeNotif.applicationIconBadgeNumber;\n      // TODO: remove soundName on next major version\n      this._sound = nativeNotif.sound || nativeNotif.soundName;\n      this._alert = nativeNotif.body;\n      this._title = nativeNotif?.title;\n      this._subtitle = nativeNotif?.subtitle;\n      this._threadID = nativeNotif['thread-id'];\n      this._data = nativeNotif.userInfo;\n      this._category = nativeNotif.category;\n      this._fireDate = nativeNotif.fireDate;\n    }\n  }\n\n  /**\n   * This method is available for remote notifications that have been received via:\n   * `application:didReceiveRemoteNotification:fetchCompletionHandler:`\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#finish\n   */\n  finish(fetchResult: string) {\n    if (\n      !this._isRemote ||\n      !this._notificationId ||\n      this._remoteNotificationCompleteCallbackCalled\n    ) {\n      return;\n    }\n    this._remoteNotificationCompleteCallbackCalled = true;\n\n    invariant(\n      RNCPushNotificationIOS,\n      'PushNotificationManager is not available.',\n    );\n    RNCPushNotificationIOS.onFinishRemoteNotification(\n      this._notificationId,\n      fetchResult,\n    );\n  }\n\n  /**\n   * An alias for `getAlert` to get the notification's main message string\n   */\n  getMessage(): ?string | ?Object {\n    if (typeof this._alert === 'object') {\n      return this._alert?.body;\n    }\n    return this._alert;\n  }\n\n  /**\n   * Gets the sound string from the `aps` object\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getsound\n   */\n  getSound(): ?string {\n    return this._sound;\n  }\n\n  /**\n   * Gets the category string from the `aps` object\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getcategory\n   */\n  getCategory(): ?string {\n    return this._category;\n  }\n\n  /**\n   * Gets the notification's main message from the `aps` object\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getalert\n   */\n  getAlert(): ?string | ?Object {\n    return this._alert;\n  }\n\n  /**\n   * Gets the notification's title from the `aps` object\n   *\n   */\n  getTitle(): ?string | ?Object {\n    if (typeof this._alert === 'object') {\n      return this._alert?.title;\n    }\n    return this._title;\n  }\n\n  /**\n   * Gets the notification's subtitle from the `aps` object\n   *\n   */\n  getSubtitle(): ?string | ?Object {\n    if (typeof this._alert === 'object') {\n      return this._alert?.subtitle;\n    }\n    return this._subtitle;\n  }\n\n  /**\n   * Gets the content-available number from the `aps` object\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getcontentavailable\n   */\n  getContentAvailable(): ContentAvailable {\n    return this._contentAvailable;\n  }\n\n  /**\n   * Gets the badge count number from the `aps` object\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getbadgecount\n   */\n  getBadgeCount(): ?number {\n    return this._badgeCount;\n  }\n\n  /**\n   * Gets the data object on the notif\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getdata\n   */\n  getData(): ?Object {\n    return this._data;\n  }\n\n  /**\n   * Gets the thread ID on the notif\n   *\n   * See https://reactnative.dev/docs/pushnotificationios.html#getthreadid\n   */\n  getThreadID(): ?string {\n    return this._threadID;\n  }\n\n  /**\n   * Get's the action id of the notification action user has taken.\n   */\n  getActionIdentifier(): ?string {\n    return this._actionIdentifier;\n  }\n\n  /**\n   * Gets the text user has inputed if user has taken the text action response.\n   */\n  getUserText(): ?string {\n    return this._userText;\n  }\n}\n\nexport default PushNotificationIOS;\n"
  },
  {
    "path": "js/types.js",
    "content": "/**\n * @flow\n */\n\nexport type NotificationRequest = {|\n  /**\n   * identifier of the notification.\n   * Required in order to retrieve specific notification.\n   */\n  id: string,\n  /**\n   * A short description of the reason for the alert.\n   */\n  title?: string,\n  /**\n   * A secondary description of the reason for the alert.\n   */\n  subtitle?: string,\n  /**\n   * The message displayed in the notification alert.\n   */\n  body?: string,\n  /**\n   * The number to display as the app's icon badge.\n   */\n  badge?: number,\n  /**\n   * The sound to play when the notification is delivered.\n   */\n  sound?: string,\n  /**\n   * The category of this notification. Required for actionable notifications.\n   */\n  category?: string,\n  /**\n   * The thread identifier of this notification.\n   */\n  threadId?: string,\n  /**\n   * The date which notification triggers.\n   */\n  fireDate?: Date,\n  /**\n   * Sets notification to repeat daily.\n   * Must be used with fireDate.\n   */\n  repeats?: boolean,\n  /**\n   * Define what components should be used in the fireDate during repeats.\n   * Must be used with repeats and fireDate.\n   */\n  repeatsComponent?: {\n    year?: boolean,\n    month?: boolean,\n    day?: boolean,\n    dayOfWeek?: boolean,\n    hour?: boolean,\n    minute?: boolean,\n    second?: boolean,\n  },\n  /**\n   * Sets notification to be silent\n   */\n  isSilent?: boolean,\n  /**\n   * Sets notification to be critical\n   */\n  isCritical?: boolean,\n  /**\n   * The volume for the critical alert’s sound. Set this to a value between 0.0 (silent) and 1.0 (full volume).\n   */\n  criticalSoundVolume?: number,\n  /**\n   * Optional data to be added to the notification\n   */\n  userInfo?: Object,\n  /**\n   * FireDate adjusted automatically upon time zone changes (e.g. for an alarm clock).\n   */\n  isTimeZoneAgnostic?: boolean,\n  /**\n   * The interruption level for the notification.\n   * Possible values: 'passive', 'active', 'timeSensitive', 'critical'\n   */\n  interruptionLevel?: 'passive' | 'active' | 'timeSensitive' | 'critical',\n|};\n\n/**\n * Alert Object that can be included in the aps `alert` object\n */\nexport type NotificationAlert = {|\n  title?: string,\n  subtitle?: string,\n  body?: string,\n|};\n\n/**\n * Notification Category that can include specific actions\n */\nexport type NotificationCategory = {|\n  /**\n   * Identifier of the notification category.\n   * Notification with this category will have the specified actions.\n   */\n  id: string,\n  actions: NotificationAction[],\n|};\n\n/**\n * Notification Action that can be added to specific categories\n */\nexport type NotificationAction = {|\n  /**\n   * Identifier of Action.\n   * This value will be returned as actionIdentifier when notification is received.\n   */\n  id: string,\n  /**\n   * Text to be shown on notification action button.\n   */\n  title: string,\n  /**\n   * Option for notification action.\n   */\n  options?: {\n    foreground?: boolean,\n    destructive?: boolean,\n    authenticationRequired?: boolean,\n  },\n  /**\n   * Option for textInput action.\n   * If textInput prop exists, then user action will automatically become a text input action.\n   * The text user inputs will be in the userText field of the received notification.\n   */\n  textInput?: {\n    /**\n     * Text to be shown on button when user finishes text input.\n     * Default is \"Send\" or its equivalent word in user's language setting.\n     */\n    buttonTitle?: string,\n    /**\n     * Placeholder for text input for text input action.\n     */\n    placeholder?: string,\n  },\n|};\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"@react-native-community/push-notification-ios\",\n  \"version\": \"1.11.0\",\n  \"description\": \"React Native Push Notification API for iOS\",\n  \"main\": \"js/index.js\",\n  \"types\": \"index.d.ts\",\n  \"author\": \"Rafael Lincoln <rafaellincolnpereira@gmail.com>\",\n  \"contributors\": [\n    \"Jesse Katsumata <jesse.katsumata@gmail.com>\"\n  ],\n  \"homepage\": \"https://github.com/react-native-community/push-notification-ios#readme\",\n  \"license\": \"MIT\",\n  \"files\": [\n    \"android\",\n    \"ios\",\n    \"js\",\n    \"index.d.ts\",\n    \"RNCPushNotificationIOS.podspec\"\n  ],\n  \"scripts\": {\n    \"start\": \"react-native start\",\n    \"android\": \"cd example && react-native run-android\",\n    \"ios\": \"cd example && react-native run-ios\",\n    \"test\": \"yarn test:flow && yarn test:js\",\n    \"test:flow\": \"flow check\",\n    \"test:js\": \"echo 0\",\n    \"lint\": \"eslint \\\"js/*.js\\\" --cache\",\n    \"test:tsc\": \"tsc --noEmit\"\n  },\n  \"keywords\": [\n    \"react-native\",\n    \"react native\",\n    \"push notification ios\",\n    \"push notification\",\n    \"notification ios\",\n    \"notification\"\n  ],\n  \"peerDependencies\": {\n    \"react\": \">=16.6.3\",\n    \"react-native\": \">=0.58.4\"\n  },\n  \"dependencies\": {\n    \"invariant\": \"^2.2.4\"\n  },\n  \"devDependencies\": {\n    \"@babel/core\": \"^7.0.0\",\n    \"@react-native-community/eslint-config\": \"^3.0.0\",\n    \"babel-jest\": \"^27.0.6\",\n    \"babel-plugin-module-resolver\": \"^3.1.3\",\n    \"eslint\": \"^7.32.0\",\n    \"flow-bin\": \"0.137.0\",\n    \"jest\": \"^27.0.6\",\n    \"metro-react-native-babel-preset\": \"^0.64.0\",\n    \"react\": \"17.0.1\",\n    \"react-native\": \"0.64.2\",\n    \"typescript\": \"^3.9.5\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/react-native-community/push-notification-ios.git\"\n  }\n}\n"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    /* Basic Options */\n    \"target\": \"es6\",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */\n    \"module\": \"commonjs\",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */\n    \"noEmit\": true,\n    /* Strict Type-Checking Options */\n    \"strict\": true,                           /* Enable all strict type-checking options. */\n    \"esModuleInterop\": true                   /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */\n  }\n}\n"
  }
]