Next generation mobile framework for building native / hybrid apps.
npm install natjs --save
add nat moudles you need from weex plugin market
weexpack plugin add [nat moudle you need]
Use Nat in weex file (.we)
<script>
import 'Nat' from 'natjs'
// make a phone call
Nat.call('415-736-0000')
// take a photo
Nat.camera.captureImage((err, ret) => {
console.log('Path: ', ret.path)
})
// more...
</script>
- camera
- communication
- geolocation
- media
- modal
- recorder
- network
- sensor
- device
- Android
- iOS