# @rebox/native-utils

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

Latest version **5.0.0** (published 2021-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rebox/native-utils
pnpm add @rebox/native-utils
yarn add @rebox/native-utils
bun add @rebox/native-utils
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2021-04-20 |
| First published | 2019-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.13.0 |
| Dependencies | 25 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 82 |
| Maintainers | psxcode, deepsweet, fosimus |
| Keywords | react, react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/@rebox/native-utils
- Repository: https://github.com/nextools/metarepo
- Homepage: https://github.com/nextools/metarepo#readme
- Issues: https://github.com/nextools/metarepo/issues
- npm.io page: https://npm.io/package/@rebox/native-utils

## Dependencies (25)

- [tsfn](https://npm.io/package/tsfn.md) ^2.2.0
- [copie](https://npm.io/package/copie.md) ^2.0.0
- [is-ci](https://npm.io/package/is-ci.md) ^2.0.0
- [portu](https://npm.io/package/portu.md) ^0.2.0
- [react](https://npm.io/package/react.md) 17.0.1
- [spown](https://npm.io/package/spown.md) ^0.1.2
- [dirdir](https://npm.io/package/dirdir.md) ^0.1.0
- [webpack](https://npm.io/package/webpack.md) ^4.30.0
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [raw-loader](https://npm.io/package/raw-loader.md) ^4.0.1
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.4.3
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.5
- [react-native](https://npm.io/package/react-native.md) 0.64.0
- [@psxcode/wait](https://npm.io/package/@psxcode/wait.md) ^0.1.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.4.3
- [@haul-bundler/cli](https://npm.io/package/@haul-bundler/cli.md) ^0.23.0
- [@haul-bundler/core](https://npm.io/package/@haul-bundler/core.md) ^0.23.0
- [terser-webpack-plugin](https://npm.io/package/terser-webpack-plugin.md) ^4.0.0
- [@babel/plugin-syntax-bigint](https://npm.io/package/@babel/plugin-syntax-bigint.md) ^7.4.4
- [metro-react-native-babel-preset](https://npm.io/package/metro-react-native-babel-preset.md) 0.59.0
- [@babel/plugin-transform-react-jsx](https://npm.io/package/@babel/plugin-transform-react-jsx.md) ^7.13.12
- [case-sensitive-paths-webpack-plugin](https://npm.io/package/case-sensitive-paths-webpack-plugin.md) ^2.2.0
- [@babel/plugin-proposal-optional-chaining](https://npm.io/package/@babel/plugin-proposal-optional-chaining.md) ^7.6.0
- [@babel/plugin-proposal-nullish-coalescing-operator](https://npm.io/package/@babel/plugin-proposal-nullish-coalescing-operator.md) ^7.4.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.0.0 (latest) — 2021-04-20
- 4.0.5 — 2021-01-12
- 4.0.4 — 2020-10-20
- 4.0.3 — 2020-10-08
- 4.0.2 — 2020-09-26
- 4.0.1 — 2020-09-25
- 4.0.0 — 2020-08-14
- 3.1.0 — 2020-08-12
- 3.0.4 — 2020-07-29
- 3.0.2 — 2020-07-23
- 3.0.3 — 2020-07-23
- 3.0.1 — 2020-07-09
- 3.0.0 — 2020-07-09
- 2.0.5 — 2020-04-27
- 2.0.4 — 2020-04-11
- … 19 more at https://npm.io/package/@rebox/native-utils/versions

## README

# @rebox/native-utils ![npm](https://flat.badgen.net/npm/v/@rebox/native-utils)

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

## Install

```sh
$ yarn add @rebox/native-utils
```

## API

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

const buildNativeJsBundle: (options: TBuildJsBundleOptions) => Promise<string>
```

```ts
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>

```

```ts
type TCopyNativeTemplateOptions = {
  projectPath: string,
  platform: 'ios' | 'android'
}

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

---
_Source: https://npm.io/package/@rebox/native-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
