0.0.5 • Published 7 years ago
weex-nat v0.0.5
Weex Nat
DEPRECATED: This project has been renamed to 'natjs'. Install using 'npm i natjs' instead.
Next generation mobile framework for building native / hybrid apps.
Links
Installation
npm install weex-nat --save
add nat moudles you need from weex plugin market
weexpack plugin add [nat moudle you need]
Usage
Use Nat in weex file (.we)
<script>
import 'Nat' from 'weex-nat'
// make a phone call
Nat.call('415-736-0000')
// take a photo
Nat.camera.captureImage((err, ret) => {
console.log('Path: ', ret.path)
})
// more...
</script>
Modules
- camera
- communication
- geolocation
- media
- modal
- recorder
- network
- sensor
- device
Supported Platforms
- Android
- iOS