{"_id":"@domir/react-native-nordic-dfu","_rev":"5-1a330b10e01eee42e3682a853b767c6e","name":"@domir/react-native-nordic-dfu","dist-tags":{"latest":"3.5.0"},"versions":{"3.4.0":{"name":"@domir/react-native-nordic-dfu","version":"3.4.0","keywords":["react-native","dfu","nordic"],"author":{"name":"Pilloxa","email":"recruitment@pilloxa.com"},"license":"MIT","_id":"@domir/react-native-nordic-dfu@3.4.0","maintainers":[{"name":"domir","email":"domi.github@gmail.com"}],"homepage":"https://github.com/Pilloxa/react-native-nordic-dfu#readme","bugs":{"url":"https://github.com/Pilloxa/react-native-nordic-dfu/issues"},"url":"https://github.com/Pilloxa/react-native-nordic-dfu","dist":{"shasum":"d098c1b12def3e6ee60ab893e997cb43efacb659","tarball":"https://registry.npmjs.org/@domir/react-native-nordic-dfu/-/react-native-nordic-dfu-3.4.0.tgz","fileCount":86,"integrity":"sha512-PTf6EmBnSQrmSyV0uez1aJNqboj24ocGszymzbulsl1qSVUucZQovfYV9y7A621NMfW2IIYXP0fAFjtDiz4ADQ==","signatures":[{"sig":"MEUCIQDyh2hqaiWNj6evo1+O8TbPWhzUMvHlENlUCAdrLWxDIgIgELnpE0dZzhj5E2evXs4laoMoOl6gq+bXkPASvMWMWnc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":671091},"main":"index.js","types":"./index.d.ts","gitHead":"4c9c86656bb895075491fc702bfee6892c457940","scripts":{"test":"echo \"No test specified\"","document":"documentation readme --readme-file README.md -s \"API\" -g","precommit":"lint-staged"},"_npmUser":{"name":"domir","email":"domi.github@gmail.com"},"repository":{"url":"git+https://github.com/Pilloxa/react-native-nordic-dfu.git","type":"git"},"_npmVersion":"9.7.1","description":"Nordic Device Firmware Update for React Native","directories":{},"lint-staged":{"*.js":["prettier --write","git add"],"index.js":["npm run document","git add README.md"]},"_nodeVersion":"18.14.0","dependencies":{"strict-event-emitter-types":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.2","prettier":"^2.3.2","lint-staged":"^11.1.2","documentation":"^13.2.5","@types/react-native":"^0.63.25"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-nordic-dfu_3.4.0_1694169975015_0.4002842942567668","host":"s3://npm-registry-packages"}},"3.4.1":{"name":"@domir/react-native-nordic-dfu","version":"3.4.1","keywords":["react-native","dfu","nordic"],"author":{"name":"Pilloxa","email":"recruitment@pilloxa.com"},"license":"MIT","_id":"@domir/react-native-nordic-dfu@3.4.1","maintainers":[{"name":"domir","email":"domi.github@gmail.com"}],"homepage":"https://github.com/Pilloxa/react-native-nordic-dfu#readme","bugs":{"url":"https://github.com/Pilloxa/react-native-nordic-dfu/issues"},"url":"https://github.com/Pilloxa/react-native-nordic-dfu","dist":{"shasum":"fa9a3c4865937d267d3960fb4a168250e3adc2e1","tarball":"https://registry.npmjs.org/@domir/react-native-nordic-dfu/-/react-native-nordic-dfu-3.4.1.tgz","fileCount":86,"integrity":"sha512-bcXbuw4TpoL9iM8uHDHIlfpG8mrQ1Byok/VwQ3hKCS8cVaaqF6Z0r5dU9AqzzFDAzetDPHZ+hNWT2jcsSUyzJw==","signatures":[{"sig":"MEYCIQCDauxruOh3NtaKcDIxGLQiXD+3gI0jvTWrdNWGejvkgAIhAOgDj3dzAur2pWUiotMwXzYsWMA3qesvi2zBx/z53iuZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":671098},"main":"index.js","types":"./index.d.ts","gitHead":"f713ada792178f660e44763b6720cb2eb51ac914","scripts":{"test":"echo \"No test specified\"","document":"documentation readme --readme-file README.md -s \"API\" -g","precommit":"lint-staged"},"_npmUser":{"name":"domir","email":"domi.github@gmail.com"},"repository":{"url":"git+https://github.com/Pilloxa/react-native-nordic-dfu.git","type":"git"},"_npmVersion":"9.7.1","description":"Nordic Device Firmware Update for React Native","directories":{},"lint-staged":{"*.js":["prettier --write","git add"],"index.js":["npm run document","git add README.md"]},"_nodeVersion":"18.14.0","dependencies":{"strict-event-emitter-types":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.2","prettier":"^2.3.2","lint-staged":"^11.1.2","documentation":"^13.2.5","@types/react-native":"^0.63.25"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-nordic-dfu_3.4.1_1694170301546_0.30638932991106316","host":"s3://npm-registry-packages"}},"3.4.2":{"name":"@domir/react-native-nordic-dfu","version":"3.4.2","keywords":["react-native","dfu","nordic"],"author":{"name":"Pilloxa","email":"recruitment@pilloxa.com"},"license":"MIT","_id":"@domir/react-native-nordic-dfu@3.4.2","maintainers":[{"name":"domir","email":"domi.github@gmail.com"}],"url":"https://github.com/Pilloxa/react-native-nordic-dfu","dist":{"shasum":"672e4da58ad065271a0a76efe02e2582d4c2780d","tarball":"https://registry.npmjs.org/@domir/react-native-nordic-dfu/-/react-native-nordic-dfu-3.4.2.tgz","fileCount":132,"integrity":"sha512-O9MXpKain8/aV5CYLoPilJSQhYIYLcAROqaAeLAgb4Dgh/0G6aAaInjw7Rc1ElTU2Ej8rGbzHzMdkG5K6cWgwQ==","signatures":[{"sig":"MEUCIAjX8YTeaFdzj4sPn6NE3dfwRNcTALxuNZWpwO0diLdDAiEAl2P56XBp6stWAxprBoZd599PnAxSB++MfIwqIjlb1gM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":351943},"main":"index.js","types":"./index.d.ts","scripts":{"test":"echo \"No test specified\"","document":"documentation readme --readme-file README.md -s \"API\" -g","precommit":"lint-staged"},"_npmUser":{"name":"domir","email":"domi.github@gmail.com"},"repository":{"url":"https://github.com/Pilloxa/react-native-nordic-dfu.git","type":"git"},"description":"Nordic Device Firmware Update for React Native","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2017 Pilloxa\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.\n","lint-staged":{"*.js":["prettier --write","git add"],"index.js":["npm run document","git add README.md"]},"dependencies":{"strict-event-emitter-types":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.2","prettier":"^2.3.2","lint-staged":"^11.1.2","documentation":"^13.2.5","@types/react-native":"^0.63.25"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-nordic-dfu_3.4.2_1700828386570_0.8647298793687725","host":"s3://npm-registry-packages"}},"3.4.3":{"name":"@domir/react-native-nordic-dfu","version":"3.4.3","keywords":["react-native","dfu","nordic"],"author":{"name":"Pilloxa","email":"recruitment@pilloxa.com"},"license":"MIT","_id":"@domir/react-native-nordic-dfu@3.4.3","maintainers":[{"name":"domir","email":"domi.github@gmail.com"}],"url":"https://github.com/Pilloxa/react-native-nordic-dfu","dist":{"shasum":"9c914199fe98818fc77bdfc8bb7638b0226a8d2e","tarball":"https://registry.npmjs.org/@domir/react-native-nordic-dfu/-/react-native-nordic-dfu-3.4.3.tgz","fileCount":132,"integrity":"sha512-vdcR4sD/GHAdNuhGa/rYlSNtijP+hAIT+/o1DOQJ2EzwzTqQuwRjZ3pBzI60cPtyK0S2PaCIN4F10zw7RPtITA==","signatures":[{"sig":"MEUCIQDsIhfbusWAjg0hrpUMV9oSLYTkalc2Pa6MHSa8J+o1kQIgOkWXIQ88AVAVKzQ5Pa5b9dG8k/FA1nYLJ7SiSmB6708=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":351943},"main":"index.js","types":"./index.d.ts","scripts":{"test":"echo \"No test specified\"","document":"documentation readme --readme-file README.md -s \"API\" -g","precommit":"lint-staged"},"_npmUser":{"name":"domir","email":"domi.github@gmail.com"},"repository":{"url":"https://github.com/Pilloxa/react-native-nordic-dfu.git","type":"git"},"description":"Nordic Device Firmware Update for React Native","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2017 Pilloxa\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.\n","lint-staged":{"*.js":["prettier --write","git add"],"index.js":["npm run document","git add README.md"]},"dependencies":{"strict-event-emitter-types":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.2","prettier":"^2.3.2","lint-staged":"^11.1.2","documentation":"^13.2.5","@types/react-native":"^0.63.25"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-nordic-dfu_3.4.3_1705922976237_0.27648425235562746","host":"s3://npm-registry-packages"}},"3.4.4":{"name":"@domir/react-native-nordic-dfu","version":"3.4.4","keywords":["react-native","dfu","nordic"],"author":{"name":"Pilloxa","email":"recruitment@pilloxa.com"},"license":"MIT","_id":"@domir/react-native-nordic-dfu@3.4.4","maintainers":[{"name":"domir","email":"domi.github@gmail.com"}],"url":"https://github.com/Pilloxa/react-native-nordic-dfu","dist":{"shasum":"8d2f14fb4157d445bcc8e1c97d62e68a866ab0be","tarball":"https://registry.npmjs.org/@domir/react-native-nordic-dfu/-/react-native-nordic-dfu-3.4.4.tgz","fileCount":132,"integrity":"sha512-pOj7wAbM47Z9wXOrCqopXT491KPjfcKxtf8LlwbMiKN5kGfMAQmxC6bfsQuqYKDmNP9o4RTkxG4U/yXy2RHncA==","signatures":[{"sig":"MEYCIQD5kekAZOXRuxFa42yvbwQNHQ3kx20AlqQyoHcVX85t3AIhANKmoOXs4KKkszAKYcAvIFifJzKiyqusPFgVgcYF/fvX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":352050},"main":"index.js","types":"./index.d.ts","scripts":{"test":"echo \"No test specified\"","document":"documentation readme --readme-file README.md -s \"API\" -g","precommit":"lint-staged"},"_npmUser":{"name":"domir","email":"domi.github@gmail.com"},"repository":{"url":"https://github.com/Pilloxa/react-native-nordic-dfu.git","type":"git"},"description":"Nordic Device Firmware Update for React Native","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2017 Pilloxa\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.\n","lint-staged":{"*.js":["prettier --write","git add"],"index.js":["npm run document","git add README.md"]},"dependencies":{"strict-event-emitter-types":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^7.0.2","prettier":"^2.3.2","lint-staged":"^11.1.2","documentation":"^13.2.5","@types/react-native":"^0.63.25"},"peerDependencies":{"react":"*","react-native":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-native-nordic-dfu_3.4.4_1705927098451_0.8470698118764397","host":"s3://npm-registry-packages"}},"3.5.0":{"name":"@domir/react-native-nordic-dfu","version":"3.5.0","description":"Nordic Device Firmware Update for React Native","main":"index.js","url":"https://github.com/Pilloxa/react-native-nordic-dfu","repository":{"type":"git","url":"https://github.com/Pilloxa/react-native-nordic-dfu.git"},"scripts":{"test":"echo \"No test specified\"","precommit":"lint-staged","document":"documentation readme --readme-file README.md -s \"API\" -g"},"keywords":["react-native","dfu","nordic"],"author":{"name":"Pilloxa","email":"recruitment@pilloxa.com"},"license":"MIT","peerDependencies":{"react":"*","react-native":"*"},"devDependencies":{"@types/react-native":"^0.63.25","documentation":"^13.2.5","husky":"^7.0.2","lint-staged":"^11.1.2","prettier":"^2.3.2"},"lint-staged":{"*.js":["prettier --write","git add"],"index.js":["npm run document","git add README.md"]},"types":"./index.d.ts","dependencies":{"strict-event-emitter-types":"^2.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2017 Pilloxa\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.\n","_id":"@domir/react-native-nordic-dfu@3.5.0","dist":{"shasum":"e3872b36545cc6deb517e496c818e8604eee955c","integrity":"sha512-y6A45WNDcEKvA37z6n5COBJyrRor3MuxbV6h9IXqrEjFnLLA5yxXNlbvmG0MmJgXgeSuGN3zzGs8/X6Zk5i/Sg==","tarball":"https://registry.npmjs.org/@domir/react-native-nordic-dfu/-/react-native-nordic-dfu-3.5.0.tgz","fileCount":133,"unpackedSize":352943,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9PQW9ggfo7/gpftHT3giDH04s/vK9aC6QTftD8c0XtAiEA8HDdhoscz6NVeRG5D04VFq1sjNBLyQLCLqumGGz+TN4="}]},"_npmUser":{"name":"domir","email":"domi.github@gmail.com"},"directories":{},"maintainers":[{"name":"domir","email":"domi.github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-nordic-dfu_3.5.0_1723640864976_0.6359870665184586"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-08T10:46:14.889Z","modified":"2024-08-14T13:07:45.436Z","3.4.0":"2023-09-08T10:46:15.294Z","3.4.1":"2023-09-08T10:51:41.853Z","3.4.2":"2023-11-24T12:19:46.881Z","3.4.3":"2024-01-22T11:29:36.478Z","3.4.4":"2024-01-22T12:38:18.688Z","3.5.0":"2024-08-14T13:07:45.284Z"},"author":{"name":"Pilloxa","email":"recruitment@pilloxa.com"},"license":"MIT","keywords":["react-native","dfu","nordic"],"repository":{"type":"git","url":"https://github.com/Pilloxa/react-native-nordic-dfu.git"},"description":"Nordic Device Firmware Update for React Native","maintainers":[{"name":"domir","email":"domi.github@gmail.com"}],"readme":"# react-native-nordic-dfu [![npm version](https://badge.fury.io/js/react-native-nordic-dfu.svg)](https://badge.fury.io/js/react-native-nordic-dfu) [![CircleCI](https://circleci.com/gh/Pilloxa/react-native-nordic-dfu.svg?style=svg)](https://circleci.com/gh/Pilloxa/react-native-nordic-dfu) [![Known Vulnerabilities](https://snyk.io/test/github/pilloxa/react-native-nordic-dfu/badge.svg)](https://snyk.io/test/github/pilloxa/react-native-nordic-dfu)\n\n> ⚠️ Warning! This library is no longer actively maintained. For a more up to date version check out: [Salt-PepperEngineering/react-native-nordic-dfu](https://github.com/Salt-PepperEngineering/react-native-nordic-dfu)\n\nThis library allows you to do a Device Firmware Update (DFU) of your nrf51 or\nnrf52 chip from Nordic Semiconductor. It works for both iOS and Android.\n\nFor more info about the DFU process, see: [Resources](#resources)\n\n### This is a fork from the main library!\n\n- Please keep in mind the our availability to maintain this fork is limited and is based on our project needs.\n- If need the main documentation you can find it [here](https://github.com/Pilloxa/react-native-nordic-dfu).\n- This fork contains the latest verisons of `iOSDFULibrary` & `Android-BLE-Library`.\n\n### Installation\n\nInstall and link the NPM package per usual with\n\n```bash\nnpm install --save https://github.com/Salt-PepperEngineering/react-native-nordic-dfu\n```\n\nor\n\n```bash\nyarn add https://github.com/Salt-PepperEngineering/react-native-nordic-dfu\n```\n\nFor React Native below 60.0 version\n\n```bash\nreact-native link react-native-nordic-dfu\n```\n\n### Project Setup\n\nUnfortunately, the ios project is written in Objective-C so you will need to use `use_frameworks! :linkage => :static`.\nNote: We are considering rewriting the ios module on Swift, but it depends very much on how much free time we have and how much we needed right now.\n\n`Podfile`:\n\n- Flipper Disabled\n\n```ruby\ntarget \"YourApp\" do\n\n  ...\n  pod \"react-native-nordic-dfu\", path: \"../node_modules/react-native-nordic-dfu\"\n  ...\n  use_frameworks! :linkage => :static\n  ...\n  :flipper_configuration => FlipperConfiguration.disabled,\n  ...\n\nend\n```\n\n- Flipper enabled\n\n```ruby\nstatic_frameworks = ['iOSDFULibrary']\npre_install do |installer|\n  installer.pod_targets.each do |pod|\n    if static_frameworks.include?(pod.name)\n      puts \"Overriding the static_frameworks? method for #{pod.name}\"\n      def pod.build_type;\n        Pod::BuildType.new(:linkage => :static, :packaging => :framework)\n      end\n    end\n  end\nend\n\ntarget \"YourApp\" do\n\n  ...\n  pod \"react-native-nordic-dfu\", path: \"../node_modules/react-native-nordic-dfu\"\n  ...\n  :flipper_configuration => FlipperConfiguration.enabled,\n  ...\n\nend\n```\n\n`AppDelegate.mm`:\n\n```\n...\n#import \"RNNordicDfu.h\"\n...\n\n@implementation AppDelegate\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n  ...\n\n  [RNNordicDfu setCentralManagerGetter:^() {\n           return [[CBCentralManager alloc] initWithDelegate:nil queue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0)];\n       }];\n\n         // Reset manager delegate since the Nordic DFU lib \"steals\" control over it\n             [RNNordicDfu setOnDFUComplete:^() {\n                 NSLog(@\"onDFUComplete\");\n             }];\n             [RNNordicDfu setOnDFUError:^() {\n                 NSLog(@\"onDFUError\");\n             }];\n  ...\n\n}\n```\n\n### New Example\n\n1. `cd newExample`\n2. `yarn setup`\n3. Go to `newExample/App.tsx`\n4. Update the `filePath` variable with the link to the firmware file\n5. Update the `BleManagerService.init('', '');` function with the DFU Service & the device name\n6. Press `Connect to Device in Area` button\n7. When you see some small info about the device on the screen Press the `Start Update`\n8. If you have any problems connecting to the Device pleas consult the [react-native-ble-manager](https://github.com/innoveit/react-native-ble-manager)\n\n### Issues\n\n- For configuration issues please also check this (https://github.com/Pilloxa/react-native-nordic-dfu/issues/171)\n\n### Resources\n\n- [DFU Introduction](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/examples_ble_dfu.html?cp=6_0_0_4_3_1 \"BLE Bootloader/DFU\")\n- [Secure DFU Introduction](http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_0_4_3_1 \"BLE Secure DFU Bootloader\")\n- [How to create init packet](https://github.com/NordicSemiconductor/Android-nRF-Connect/tree/master/init%20packet%20handling \"Init packet handling\")\n- [nRF51 Development Kit (DK)](http://www.nordicsemi.com/eng/Products/nRF51-DK \"nRF51 DK\") (compatible with Arduino Uno Revision 3)\n- [nRF52 Development Kit (DK)](http://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF52-DK \"nRF52 DK\") (compatible with Arduino Uno Revision 3)\n","readmeFilename":"README.md"}