Skip to content
This repository has been archived by the owner on Nov 24, 2017. It is now read-only.

Commit

Permalink
Add support for React Native 25+. Breaking change -- won't work with …
Browse files Browse the repository at this point in the history
…prior releases.
  • Loading branch information
wookiem committed May 29, 2016
1 parent 129c5e6 commit 585419b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -12,6 +12,8 @@ Note: this project is under development and functionality will improve over time
npm install react-native-file-download --save
```

## Breaking change -- Now supports React Native v25+. Not compatible with prior versions. You can continue using older versions of React Native with react-native-file-download@0.0.9.

## Getting started - iOS

1. In XCode, in the project navigator right click `Libraries``Add Files to [your project's name]`
Expand Down
8 changes: 5 additions & 3 deletions index.ios.js
@@ -1,8 +1,10 @@
'use strict'

var React = require('react-native')
var RNFileDownload = React.NativeModules.RNFileDownload
var NativeAppEventEmitter = React.NativeAppEventEmitter
import {
NativeModules,
NativeAppEventEmitter
} from 'react-native';
var RNFileDownload = NativeModules.RNFileDownload;
var promisify = require("es6-promisify")

let progressEventName = 'RNFileDownloadProgress'
Expand Down

0 comments on commit 585419b

Please sign in to comment.