Skip to content

Commit

Permalink
Taro 3 React Native 相关文档补充 (#8118)
Browse files Browse the repository at this point in the history
* docs: update rn-api

* feat: components-rn 3.x

* feat: config-detail

* docs: RN端开发流程 3.x

* docs: update RN端开发流程 3.x

* docs: 开放文档(RN端开发流程)

* docs: 开放文档(RN端开发流程)

* docs: 补充 CocoaPods 安装说明

* feat: config-detail

* feat: config-detail

* feat(config-detail): modify rn config detail about the style config

Co-authored-by: nickyefei <shoxvc2008@163.com>
Co-authored-by: qiuz <zhu_anly@163.com>
Co-authored-by: haojie <394692633@qq.com>
Co-authored-by: iChengbo <chengbo_x@163.com>
Co-authored-by: shinken008 <shinken008@gmail.com>
  • Loading branch information
6 people authored Dec 2, 2020
1 parent 3fb47b8 commit 80a8450
Show file tree
Hide file tree
Showing 51 changed files with 502 additions and 192 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
.now
dist
dist
.history/
2 changes: 1 addition & 1 deletion docs/apis/base/arrayBufferToBase64.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ const base64 = Taro.arrayBufferToBase64(arrayBuffer)

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.arrayBufferToBase64 | ✔️ | ✔️ | |
| Taro.arrayBufferToBase64 | ✔️ | ✔️ | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/base/base64ToArrayBuffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ const arrayBuffer = Taro.base64ToArrayBuffer(base64)

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.base64ToArrayBuffer | ✔️ | ✔️ | |
| Taro.base64ToArrayBuffer | ✔️ | ✔️ | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/base/env/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ typeof env

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.env | ✔️ | | |
| Taro.env | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/device/accelerometer/offAccelerometerChange.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ sidebar_label: offAccelerometerChange

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.offAccelerometerChange | ✔️ | | |
| Taro.offAccelerometerChange | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/device/network/offNetworkStatusChange.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ sidebar_label: offNetworkStatusChange

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.offNetworkStatusChange | ✔️ | | |
| Taro.offNetworkStatusChange | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/device/scan/scancode.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,4 @@ Taro.scanCode({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.scanCode | ✔️ | ✔️ | |
| Taro.scanCode | ✔️ | ✔️ | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/device/screen/getScreenBrightness.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ sidebar_label: getScreenBrightness

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.getScreenBrightness | ✔️ | | |
| Taro.getScreenBrightness | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/device/screen/setKeepScreenOn.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ Taro.setKeepScreenOn({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.setKeepScreenOn | ✔️ | | |
| Taro.setKeepScreenOn | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/files/getFileInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ Taro.getFileInfo({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.getFileInfo | ✔️ | | |
| Taro.getFileInfo | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/files/getSavedFileInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ Taro.getSavedFileInfo({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.getSavedFileInfo | ✔️ | | |
| Taro.getSavedFileInfo | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/files/getSavedFileList.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ Taro.getSavedFileList({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.getSavedFileList | ✔️ | | |
| Taro.getSavedFileList | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/files/removeSavedFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ Taro.getSavedFileList({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.removeSavedFile | ✔️ | | |
| Taro.removeSavedFile | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/files/saveFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ Taro.chooseImage({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.saveFile | ✔️ | | |
| Taro.saveFile | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/location/getLocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ Taro.getLocation({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.getLocation | ✔️ | | |
| Taro.getLocation | ✔️ | | ✔️ |
29 changes: 29 additions & 0 deletions docs/apis/media/audio/InnerAudioContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,3 +698,32 @@ innerAudioContext.onError((res) => {
console.log(res.errCode)
})
```
## API 支持度

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| InnerAudioContext.play | ✔️ | ✔️ | ✔️ |
| InnerAudioContext.pause | ✔️ | ✔️ | ✔️ |
| InnerAudioContext.stop | ✔️ | ✔️ | ✔️ |
| InnerAudioContext.seek | ✔️ | ✔️ | ✔️ |
| InnerAudioContext.destroy | ✔️ | ✔️ | |
| InnerAudioContext.onCanplay | ✔️ | | ✔️ |
| InnerAudioContext.onPlay | ✔️ | | ✔️ |
| InnerAudioContext.onPause | ✔️ | | ✔️ |
| InnerAudioContext.onStop | ✔️ | | ✔️ |
| InnerAudioContext.onEnded | ✔️ | | ✔️ |
| InnerAudioContext.onTimeUpdate | ✔️ | | ✔️ |
| InnerAudioContext.onError | ✔️ | | ✔️ |
| InnerAudioContext.onWaiting | ✔️ | | ✔️ |
| InnerAudioContext.onSeeking | ✔️ | | ✔️ |
| InnerAudioContext.onSeeked | ✔️ | | ✔️ |
| InnerAudioContext.offCanplay | ✔️ | | ✔️ |
| InnerAudioContext.offPlay | ✔️ | | ✔️ |
| InnerAudioContext.offPause | ✔️ | | ✔️ |
| InnerAudioContext.offStop | ✔️ | | ✔️ |
| InnerAudioContext.offEnded | ✔️ | | ✔️ |
| InnerAudioContext.offTimeUpdate | ✔️ | | ✔️ |
| InnerAudioContext.offError | ✔️ | | ✔️ |
| InnerAudioContext.offWaiting | ✔️ | | ✔️ |
| InnerAudioContext.offSeeking | ✔️ | | ✔️ |
| InnerAudioContext.offSeeked | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/media/audio/createInnerAudioContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ innerAudioContext.onError((res) => {

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.createInnerAudioContext | ✔️ | ✔️ | |
| Taro.createInnerAudioContext | ✔️ | ✔️ | ✔️ |
12 changes: 6 additions & 6 deletions docs/apis/media/camera/CameraContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sidebar_label: CameraContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| CameraContext.startRecord | ✔️ | | |
| CameraContext.startRecord | ✔️ | | ✔️ |

### stopRecord

Expand Down Expand Up @@ -67,7 +67,7 @@ sidebar_label: CameraContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| CameraContext.stopRecord | ✔️ | | |
| CameraContext.stopRecord | ✔️ | | ✔️ |

### takePhoto

Expand Down Expand Up @@ -98,7 +98,7 @@ sidebar_label: CameraContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| CameraContext.takePhoto | ✔️ | | |
| CameraContext.takePhoto | ✔️ | | ✔️ |

### onCameraFrame

Expand Down Expand Up @@ -441,7 +441,7 @@ listener.start()

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| CameraContext.startRecord | ✔️ | | |
| CameraContext.stopRecord | ✔️ | | |
| CameraContext.takePhoto | ✔️ | | |
| CameraContext.startRecord | ✔️ | | ✔️ |
| CameraContext.stopRecord | ✔️ | | ✔️ |
| CameraContext.takePhoto | ✔️ | | ✔️ |
| CameraContext.onCameraFrame | ✔️ | | |
2 changes: 1 addition & 1 deletion docs/apis/media/camera/createCameraContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ const cameraContext = Taro.createCameraContext()

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.createCameraContext | ✔️ | | |
| Taro.createCameraContext | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/media/image/compressImage.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ Taro.compressImage({

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.compressImage | ✔️ | | |
| Taro.compressImage | ✔️ | | ✔️ |
36 changes: 18 additions & 18 deletions docs/apis/media/recorder/RecorderManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.onError | ✔️ | | |
| RecorderManager.onError | ✔️ | | ✔️ |

### onFrameRecorded

Expand Down Expand Up @@ -172,7 +172,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.onPause | ✔️ | | |
| RecorderManager.onPause | ✔️ | | ✔️ |

### onResume

Expand Down Expand Up @@ -205,7 +205,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.onResume | ✔️ | | |
| RecorderManager.onResume | ✔️ | | ✔️ |

### onStart

Expand Down Expand Up @@ -238,7 +238,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.onStart | ✔️ | | |
| RecorderManager.onStart | ✔️ | | ✔️ |

### onStop

Expand Down Expand Up @@ -271,7 +271,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.onStop | ✔️ | | |
| RecorderManager.onStop | ✔️ | | ✔️ |

### pause

Expand All @@ -287,7 +287,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.pause | ✔️ | | |
| RecorderManager.pause | ✔️ | | ✔️ |

### resume

Expand All @@ -303,7 +303,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.resume | ✔️ | | |
| RecorderManager.resume | ✔️ | | ✔️ |

### start

Expand Down Expand Up @@ -334,7 +334,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.start | ✔️ | | |
| RecorderManager.start | ✔️ | | ✔️ |

### stop

Expand All @@ -350,7 +350,7 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.stop | ✔️ | | |
| RecorderManager.stop | ✔️ | | ✔️ |

## 参数

Expand Down Expand Up @@ -706,15 +706,15 @@ sidebar_label: RecorderManager

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| RecorderManager.onError | ✔️ | | |
| RecorderManager.onError | ✔️ | | ✔️ |
| RecorderManager.onFrameRecorded | ✔️ | | |
| RecorderManager.onInterruptionBegin | ✔️ | | |
| RecorderManager.onInterruptionEnd | ✔️ | | |
| RecorderManager.onPause | ✔️ | | |
| RecorderManager.onResume | ✔️ | | |
| RecorderManager.onStart | ✔️ | | |
| RecorderManager.onStop | ✔️ | | |
| RecorderManager.pause | ✔️ | | |
| RecorderManager.resume | ✔️ | | |
| RecorderManager.start | ✔️ | | |
| RecorderManager.stop | ✔️ | | |
| RecorderManager.onPause | ✔️ | | ✔️ |
| RecorderManager.onResume | ✔️ | | ✔️ |
| RecorderManager.onStart | ✔️ | | ✔️ |
| RecorderManager.onStop | ✔️ | | ✔️ |
| RecorderManager.pause | ✔️ | | ✔️ |
| RecorderManager.resume | ✔️ | | ✔️ |
| RecorderManager.start | ✔️ | | ✔️ |
| RecorderManager.stop | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/media/recorder/getRecorderManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ recorderManager.start(options)

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.getRecorderManager | ✔️ | | |
| Taro.getRecorderManager | ✔️ | | ✔️ |
28 changes: 14 additions & 14 deletions docs/apis/media/video/VideoContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.exitFullScreen | ✔️ | | |
| VideoContext.exitFullScreen | ✔️ | | ✔️ |

### hideStatusBar

Expand Down Expand Up @@ -51,7 +51,7 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.pause | ✔️ | | |
| VideoContext.pause | ✔️ | | ✔️ |

### play

Expand All @@ -67,7 +67,7 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.play | ✔️ | | |
| VideoContext.play | ✔️ | | ✔️ |

### playbackRate

Expand Down Expand Up @@ -100,7 +100,7 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.playbackRate | ✔️ | | |
| VideoContext.playbackRate | ✔️ | | ✔️ |

### requestFullScreen

Expand Down Expand Up @@ -131,7 +131,7 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.requestFullScreen | ✔️ | | |
| VideoContext.requestFullScreen | ✔️ | | ✔️ |

### seek

Expand Down Expand Up @@ -164,7 +164,7 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.seek | ✔️ | | |
| VideoContext.seek | ✔️ | | ✔️ |

### sendDanmu

Expand Down Expand Up @@ -229,7 +229,7 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.stop | ✔️ | | |
| VideoContext.stop | ✔️ | | ✔️ |

## 参数

Expand Down Expand Up @@ -287,13 +287,13 @@ sidebar_label: VideoContext

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| VideoContext.exitFullScreen | ✔️ | | |
| VideoContext.exitFullScreen | ✔️ | | ✔️ |
| VideoContext.hideStatusBar | ✔️ | | |
| VideoContext.pause | ✔️ | | |
| VideoContext.play | ✔️ | | |
| VideoContext.playbackRate | ✔️ | | |
| VideoContext.requestFullScreen | ✔️ | | |
| VideoContext.seek | ✔️ | | |
| VideoContext.pause | ✔️ | | ✔️ |
| VideoContext.play | ✔️ | | ✔️ |
| VideoContext.playbackRate | ✔️ | | ✔️ |
| VideoContext.requestFullScreen | ✔️ | | ✔️ |
| VideoContext.seek | ✔️ | | ✔️ |
| VideoContext.sendDanmu | ✔️ | | |
| VideoContext.showStatusBar | ✔️ | | |
| VideoContext.stop | ✔️ | | |
| VideoContext.stop | ✔️ | | ✔️ |
2 changes: 1 addition & 1 deletion docs/apis/media/video/createVideoContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ videoContext = Taro.createVideoContext('myVideo')

| API | 微信小程序 | H5 | React Native |
| :---: | :---: | :---: | :---: |
| Taro.createVideoContext | ✔️ | ✔️ | |
| Taro.createVideoContext | ✔️ | ✔️ | ✔️ |
Loading

0 comments on commit 80a8450

Please sign in to comment.