Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
hehex9 committed Nov 16, 2020
1 parent 13704c5 commit 8bb8828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 47 deletions.
50 changes: 5 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,12 @@ Check the [example](example) for more details

### Installation

Using npm:
```shell
npm install --save react-native-apsara-player
```

or yarn:
```shell
yarn add --save react-native-apsara-player
```

<details>
<summary>Standard Method</summary>

**React Native 0.60 and above**

Run `pod install` in the `ios` directory.

**React Native 0.59 and below**

Run `react-native link react-native-apsara-video` to link library.
</details>

<details>
<summary>Manually Method</summary>

#### iOS
[https://facebook.github.io/react-native/docs/linking-libraries-ios](https://facebook.github.io/react-native/docs/linking-libraries-ios)

#### Android

**android/settings.gradle**
```gradle
include ':react-native-apsara-player'
project(':react-native-apsara-player').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-apsara-player/android')
npx pod-install
```

**MainApplication.java**

```java
@Override
protected List<ReactPackage> getPackages() {
return Arrays.asList(
new MainReactPackage(),
new ApsaraPlayerPackage()
);
}
```
</details>


### Usage example
```javascript
import React from 'react'
Expand Down Expand Up @@ -115,5 +71,9 @@ export default class extends React.Component {
| onError | none | Function | Function that is invoked when the video load fails |
| onProgress | none | Function | Function that is invoked when the video is updates |
### Requirements
- react-native > 0.60.0
### License
MIT
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-apsara-player",
"title": "A React Native wrapper around AliyunVideo SDK",
"version": "0.2.6",
"version": "1.0.0",
"description": "A React Native wrapper around AliyunVideo SDK",
"main": "index.js",
"repository": {
Expand All @@ -23,6 +23,6 @@
"readmeFilename": "README.md",
"peerDependencies": {
"react": "^16.8.1",
"react-native": ">=0.59.0-rc.0 <1.0.x"
"react-native": ">=0.60.0 <1.0.x"
}
}

0 comments on commit 8bb8828

Please sign in to comment.