0.1.0 • Published 2 years ago

react-native-odr v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React Native iOS ODR integration

Getting started

If you are using react-native >= 0.60 you just need to do a simple:

$ yarn add react-native-odr

Or if are using npm:

$ npm install react-native-odr --save

Now run a simple: npx pod-install or cd ios && pod install. After that, you should be able to use the library on ios platform.

Usage

import { download, OdrOptions } from 'react-native-odr';
...
const options: OdrOptions = {
  packageName: 'TestPackageName',
  packageType: 'md', // extension
};

download(options)
  .then((filePath) => console.log(filePath))
  .catch((e) => console.log(e));

Example

See iOS ODR example project

Documentation

On-Demand Resources Guide