Next generation mobile framework for building native / hybrid apps.
To check out docs and examples, visit natjs.com.
Nat Explorer is a nat example app, help you explore Nat modules instantly. Source Code
Also, you can download it directly by scan the QRcode below.
npm install natjs --saveAdd nat moudles you need from weex plugin market
weexpack plugin add [nat moudle]Use Nat in vue/weex file (.vue/.we)
<script>importNatfrom'natjs'// Make a phone callNat.call('415-736-0000')// Take a photoNat.camera.captureImage((err,ret)=>{console.log('Path: ',ret.path)})// Get device infoNat.device.info((err,ret)=>{console.log('Info: ',ret)})</script>- camera
- communication
- geolocation
- media
- image
- audio
- video
- modal
- recorder
- steam
- transfer
- sensor
- accelerometer
- compass
- device
- info
- network
- vibration
- screen
- volume
- battery
- third-party
- alipay
- Android
- iOS
Copyright (c) 2017-present, Acathur

