@rebox/native-utils
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

@rebox/native-utils npm

Set of common helpers to deal with React Native on iOS and Android.

Install

$ yarn add @rebox/native-utils

API

type TBuildJsBundleOptions = {
  entryPointPath: string,
  outputPath: string,
  platform: 'ios' | 'android'
}

const buildNativeJsBundle: (options: TBuildJsBundleOptions) => Promise<string>
type TServeNativeJsBundleOptions = {
  entryPointPath: string,
  port: number,
  platform: 'ios' | 'android',
  isDev?: boolean, // `&dev=`, true by default
  shouldMinify?: boolean // `&minify=`, false by default
}

const serveNativeJsBundle: (options: TServeNativeJsBundleOptions) => Promise<() => void>
type TCopyNativeTemplateOptions = {
  projectPath: string,
  platform: 'ios' | 'android'
}

const copyNativeTemplate: (options: TCopyNativeTemplateOptions) => Promise<void>

Package Sidebar

Install

npm i @rebox/native-utils

Weekly Downloads

1

Version

5.0.0

License

MIT

Unpacked Size

18.2 kB

Total Files

17

Last publish

Collaborators

  • psxcode
  • deepsweet
  • fosimus