• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

eclipsesource/tabris-js: Create native mobile apps in JavaScript or TypeScript.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

eclipsesource/tabris-js

开源软件地址(OpenSource Url):

https://github.com/eclipsesource/tabris-js

开源编程语言(OpenSource Language):

JavaScript 68.1%

开源软件介绍(OpenSource Introduction):

Tabris.js

Build Status Slack Status

Tabris.js is a framework for developing mobile apps with native UIs in JavaScript. iOS and Android apps can be built entirely from one code base, which frees you from the task of managing code for multiple platforms.

Tabris.js hello world

import {Button, contentView, TextView} from 'tabris';

// in JS

new Button({top: 16, centerX: true, text: 'Use native UI'})
  .onSelect(() => $(TextView).only().text = 'Powered by Tabris.js')
  .appendTo(contentView);
new TextView({top: 'prev() 16', centerX: true})
  .appendTo(contentView);

// or in JSX

contentView.append(
  <$>
    <Button top={16} centerX text='Use native UI'
            onSelect={() => $(TextView).only().text = 'Powered by Tabris.js'}/>
    <TextView top='prev() 16' centerX/>
  </$>
);

Native widgets

The code of the application is loaded dynamically - nothing is precompiled. JavaScript is executed Just-in-Time and passed via a native bridge to the device. Tabris.js accesses native controls and does not depend on webviews to render the app's UI. As a result, the performance of the apps cannot be distinguished from apps developed directly in native code of the platforms.

Getting started

To start developing Tabris.js applications, visit tabrisjs.com and check out the "Getting Started" guide in the documentation. Be sure to also consult the code snippets in the Tabris.js Developer App (download from the app store for Android and iOS).

Extensible

Tabris.js can be extended with Cordova plugins to add support for additional native features. A cordova plugin is also able to directly interface with the native widgets (as can be seen e.g. in the tabris-plugin-maps).

Additionally npm modules can be used to further enrich the available JS APIs.

Tabris.js also adds support for many key web technologies including:

  • Canvas
  • XMLHttpRequest / fetch()
  • WebSockets
  • localStorage

Online build

To package your source into a installable app, Tabris.js features an online build service. There is no need to download a huge SDK or use specific hardware for development (e.g. a Mac machine to build for iOS). A local build is also available as an option if more customization is needed.

Build tabris npm module

Follow these steps if you want to build the tabris module yourself.

Install the Grunt build tool using npm:

npm install -g grunt-cli

In the tabris-js root directory fetch the dependencies and build:

npm install
grunt

License

Published under the terms of the BSD 3-Clause License.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
momo-wallet/mobile-sdk: If your business have a mobile app. You can use this SDK ...发布时间:2022-08-30
下一篇:
briangonzalez/jquery.pep.js: 发布时间:2022-08-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap