Skip to content

natjs/weex-nat-camera

Repository files navigation

nat-camera

Installation

weexpack plugin add nat-camera
npm install natjs --save

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'

// take a photo
Nat.camera.captureImage((err, ret) => {
    console.log('Path: ', ret.path)
})

// record a video
Nat.camera.captureVideo((err, ret) => {
    console.log('Path: ', ret.path)
})

</script>

See the Nat Documentation for more details.