@react-native-community/cli-platform-apple
This package is part of the [React Native CLI](../../README.md). It contains utilities for building reusable commands targetting Apple platforms.
Last updated 2 years ago by thymikee .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @react-native-community/cli-platform-apple 
SYNC missed versions from official npm registry.

@react-native-community/cli-platform-apple

This package is part of the React Native CLI. It contains utilities for building reusable commands targeting Apple platforms.

Installation

yarn add @react-native-community/cli-platform-apple

Usage

This package is intended to be used internally in React Native CLI and by out of tree platforms.

It exports builder commands that can be used to create custom run-, log- and build- commands for example: yarn run-<oot-platform>.

Inside of <oot-platform>/packages/react-native/react-native.config.js:

const {
  getBuildOptions,
  createBuild,
} = require('@react-native-community/cli-platform-apple');

const buildVisionOS = {
  name: 'build-visionos',
  description: 'builds your app for visionOS platform',
  func: createBuild({platformName: 'visionos'}),
  examples: [
    {
      desc: 'Build the app for visionOS in Release mode',
      cmd: 'npx react-native build-visionos --mode "Release"',
    },
  ],
  options: getBuildOptions({platformName: 'visionos'}),
};

module.exports = {
  commands: [buildVisionOS], // <- Add command here
  //..
};

cli-platform-apple also exports utilities to create OOT platform config.

  • getProjectConfig() - creates project config for given platform
  • getDependencyConfig() - creates dependency config for given platform

Example (<oot-platform>/packages/react-native/react-native.config.js):

platforms: {
    visionos: {
      npmPackageName: '@callstack/react-native-visionos',
      projectConfig: getProjectConfig({platformName: 'visionos'}),
      dependencyConfig: getDependencyConfig({platformName: 'visionos'}),
    },
    ..
  },

Current Tags

  • 14.1.2                                ...           14.x (a year ago)
  • 16.0.3                                ...           16.x (a year ago)
  • 17.0.1                                ...           17.x (5 months ago)
  • 18.0.1                                ...           18.x (5 months ago)
  • 19.1.2                                ...           19.x (5 months ago)
  • 20.1.3                                ...           latest (17 days ago)
  • 20.0.0-alpha.2                                ...           next (9 months ago)

66 Versions

  • 20.1.3                                ...           17 days ago
  • 20.1.2                                ...           2 months ago
  • 20.1.1                                ...           2 months ago
  • 20.1.0                                ...           3 months ago
  • 17.0.1                                ...           5 months ago
  • 18.0.1                                ...           5 months ago
  • 19.1.2                                ...           5 months ago
  • 20.0.2                                ...           7 months ago
  • 20.0.1                                ...           8 months ago
  • 20.0.0                                ...           8 months ago
  • 19.1.1                                ...           9 months ago
  • 20.0.0-alpha.2                                ...           9 months ago
  • 19.1.0                                ...           9 months ago
  • 20.0.0-alpha.0                                ...           9 months ago
  • 19.0.0                                ...           a year ago
  • 16.0.3                                ...           a year ago
  • 19.0.0-alpha.2                                ...           a year ago
  • 19.0.0-alpha.0                                ...           a year ago
  • 18.0.0                                ...           a year ago
  • 17.0.0                                ...           a year ago
  • 16.0.2                                ...           a year ago
  • 14.1.2                                ...           a year ago
  • 15.1.3                                ...           a year ago
  • 16.0.1                                ...           a year ago
  • 16.0.0                                ...           a year ago
  • 15.1.2                                ...           a year ago
  • 15.1.1                                ...           a year ago
  • 15.1.0                                ...           a year ago
  • 15.0.1                                ...           a year ago
  • 15.0.1-alpha.0                                ...           a year ago
  • 15.0.0                                ...           a year ago
  • 14.1.1                                ...           2 years ago
  • 15.0.0-alpha.2                                ...           2 years ago
  • 15.0.0-alpha.0                                ...           2 years ago
  • 14.1.0                                ...           2 years ago
  • 14.0.1                                ...           2 years ago
  • 14.0.0                                ...           2 years ago
  • 14.0.0-alpha.11                                ...           2 years ago
  • 14.0.0-alpha.10                                ...           2 years ago
  • 14.0.0-alpha.9                                ...           2 years ago
  • 14.0.0-alpha.8                                ...           2 years ago
  • 14.0.0-alpha.7                                ...           2 years ago
  • 14.0.0-alpha.6                                ...           2 years ago
  • 13.6.9                                ...           2 years ago
  • 13.6.8                                ...           2 years ago
  • 13.6.7                                ...           2 years ago
  • 14.0.0-alpha.5                                ...           2 years ago
  • 13.6.6                                ...           2 years ago
  • 14.0.0-alpha.4                                ...           2 years ago
  • 13.6.5                                ...           2 years ago
  • 14.0.0-alpha.3                                ...           2 years ago
  • 13.6.4                                ...           2 years ago
  • 14.0.0-alpha.2                                ...           2 years ago
  • 13.6.3                                ...           2 years ago
  • 14.0.0-alpha.1                                ...           2 years ago
  • 14.0.0-alpha.0                                ...           2 years ago
  • 13.6.2                                ...           2 years ago
  • 13.6.1                                ...           2 years ago
  • 13.6.0                                ...           2 years ago
  • 13.5.2                                ...           2 years ago
  • 13.5.1                                ...           2 years ago
  • 13.5.1-alpha.0                                ...           2 years ago
  • 13.5.0                                ...           2 years ago
  • 13.4.0                                ...           2 years ago
  • 13.3.0                                ...           2 years ago
  • 13.2.0                                ...           2 years ago

Copyright 2013 - present © cnpmjs.org | Home |