natjs

Next generation mobile framework for building native / hybrid apps.
1,185 281
Install
npm install natjs
Latest Version:0.1.5
License:MIT
Last Updated:Mar 17, 2018
Links: GitHub  ·  npm
Maintainer: natjs

Nat.js

npm license

Next generation mobile framework for building native / hybrid apps.

Documentation

To check out docs and examples, visit natjs.com.

Nat Explorer

Nat Explorer is a nat example app, help you explore Nat modules instantly. Source Code

Available on App Store    Android App on Google Play

Also, you can download it directly by scan the QRcode below.

Download Nat Explorer

Installation

npm install natjs --save

Add nat moudles you need from weex plugin market

weexpack plugin add [nat moudle]

Usage

Use Nat in vue/weex file (.vue/.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)
})

// Get device info
Nat.device.info((err, ret) => {
    console.log('Info: ', ret)
})

</script>

Modules

  • camera
  • communication
  • geolocation
  • media
    • image
    • audio
    • video
  • modal
  • recorder
  • steam
  • transfer
  • sensor
    • accelerometer
    • compass
  • device
    • info
    • network
    • vibration
    • screen
    • volume
    • battery
  • third-party
    • alipay

Supported Platforms

  • Android
  • iOS

License

MIT

Related Packages

vue-onsenui

Vue.js bindings for Onsen UI

55,270 8,849
@ionic/vue

Vue specific wrapper for @ionic/core

2,571,089 52,715
@ionic/vue-router

Vue Router integration for @ionic/vue

2,101,916 52,715
vue-native-router

Router for mobile apps

853 37
onsenui

HTML5 Mobile Framework & UI Components

311,647 8,849

Version History

Version Released License
0.1.5 MIT
0.1.4 MIT
0.1.3 MIT
0.1.2 MIT
0.1.1 MIT