@hot-updater/react-native
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

hot-updater (WIP)

React Native OTA solution for internal infrastructure

Usage

  • as-is
// filename: ios/MyApp/AppDelegate.mm
// ...
#import <HotUpdater/HotUpdater.h>

// ...

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
    #if DEBUG
      return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
    #else
      return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
    #endif
}

// ...
  • to-be
// filename: ios/MyApp/AppDelegate.mm
// ...

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
    return [HotUpdater bundleURL];
}

// ...

/@hot-updater/react-native/

    Package Sidebar

    Install

    npm i @hot-updater/react-native

    Weekly Downloads

    0

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    25.3 kB

    Total Files

    18

    Last publish

    Collaborators

    • gronxb