# @rebox/ios

> Set of helpers to deal with React Native applications on iOS

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

## Install

```sh
npm install @rebox/ios
pnpm add @rebox/ios
yarn add @rebox/ios
bun add @rebox/ios
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 7.0.0 |
| Published | 2021-04-20 |
| First published | 2019-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.13.0 |
| Dependencies | 11 |
| Unpacked size | 71.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 82 |
| Maintainers | psxcode, deepsweet, fosimus |
| Keywords | react, react-native, ios |

## Links

- npm: https://www.npmjs.com/package/@rebox/ios
- 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/ios

## Dependencies (11)

- [pifs](https://npm.io/package/pifs.md) ^2.0.0
- [tsfn](https://npm.io/package/tsfn.md) ^2.2.0
- [copie](https://npm.io/package/copie.md) ^2.0.0
- [dleet](https://npm.io/package/dleet.md) ^2.0.1
- [spown](https://npm.io/package/spown.md) ^0.1.2
- [dirdir](https://npm.io/package/dirdir.md) ^0.1.0
- [rn-fonts](https://npm.io/package/rn-fonts.md) ^2.0.1
- [fast-glob](https://npm.io/package/fast-glob.md) ^3.0.0
- [simple-plist](https://npm.io/package/simple-plist.md) ^1.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.4.3
- [@rebox/native-utils](https://npm.io/package/@rebox/native-utils.md) ^5.0.0

## 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

- 7.0.0 (latest) — 2021-04-20
- 6.0.4 — 2020-09-30
- 6.0.3 — 2020-09-26
- 6.0.2 — 2020-09-25
- 6.0.1 — 2020-09-04
- 6.0.0 — 2020-08-14
- 5.0.0 — 2020-08-12
- 4.0.0 — 2020-07-09
- 3.0.0 — 2020-06-17
- 2.0.5 — 2020-04-27
- 2.0.4 — 2020-04-11
- 2.0.3 — 2020-04-10
- 2.0.2 — 2020-04-03
- 2.0.1 — 2020-04-02
- 2.0.0 — 2020-04-02
- … 18 more at https://npm.io/package/@rebox/ios/versions

## README

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

Set of helpers to deal with React Native applications on iOS.

## Install

```sh
$ yarn add @rebox/ios
```

## Requirements

* Xcode
* iOS Simulator

## Setup

```sh
brew install cocoapods
```

## API

```ts
type TLinkIosDependencyOptions = {
  projectPath: string,
  dependencyName: string
}

const linkIosDependency: (options: TLinkIosDependencyOptions) => Promise<void>
```

```ts
type TBuildIosAppDebugOptions = {
  projectPath: string,
  iOSVersion: string,
  platformName: string,
  appName: string,
  appId: string
}

const buildIosAppDebug: (options: TBuildIosAppDebugOptions) => Promise<void>
```

```ts
type TInstallIosAppOptions = {
  appPath: string,
  deviceId?: string // booted one by default
}

const installIosApp: (options: TInstallIosAppOptions) => Promise<void>
```

```ts
type TUninstallIosAppOptions = {
  appId: string,
  deviceId?: string // booted one by default
}

const uninstallIosApp: (options: TUninstallIosAppOptions) => Promise<void>
```

```ts
type TRunSimulatorOptions = {
  iPhoneVersion: number,
  iOSVersion: string,
  isHeadless?: boolean // false by default
}

const runIosSimulator: (options: TRunSimulatorOptions) => Promise<() => void>
```

```ts
type TLaunchIosAppOptions = {
  appId: string,
  deviceId?: string // booted one by default
}

const launchIosApp: (options: TLaunchIosAppOptions) => Promise<void>
```

```ts
type TRunIosOptions = {
  appName: string,
  appId: string,
  entryPointPath: string,
  iOSVersion: string, // for example `13.2`
  iPhoneVersion: number, // for example `8`
  fontsDir?: string, // directory with `.ttf` or `.otf` files
  dependencyNames?: string[], // installed NPM package names
  isHeadless?: boolean, // false by default
  logMessage?: (msg: string) => void
}

const runIosApp: (options: TRunIosOptions) => Promise<() => void>
```

## Usage

```ts
// App.tsx
import { FC } from 'react'
import { Svg, Circle } from 'react-native-svg'

export const App: FC<{}> = () => (
  <Svg height={100} width={100} viewBox="0 0 100 100">
    <Circle
      cx="50"
      cy="50"
      r="45"
      stroke="blue"
      strokeWidth="2.5"
      fill="green"
    />
  </Svg>
)
```

```ts
// run.ts
import { runAndroidApp } from '@rebox/android'

await runAndroidApp({
  appName: 'Test',
  appId: 'org.nextools.test',
  entryPointPath: './App.tsx',
  dependencyNames: ['react-native-svg'],
  isHeadless: false,
  logMessage: console.log
})
```

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