All Projects → coderyi → Hello Weex

coderyi / Hello Weex

hello-weex包括一个Weex App(GitHub第三方App),和自己扩展的WeexiOSKit(iOS上的常用组件与模块)。

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Hello Weex

Liteapp
LiteApp is a high performance mobile cross-platform implementation, The realization of cross-platform functionality is base on webview and provides different ideas and solutions for improve webview performance.
Stars: ✭ 626 (+224.35%)
Mutual labels:  cross-platform, weex
Reactnativerollingexamples
react-native的一些example,目前支持iOS。另外收集了一份react-native学习列表
Stars: ✭ 214 (+10.88%)
Mutual labels:  cross-platform, weex
Mln
高性能、小巧、易上手的移动跨平台开发框架. A framework for building Mobile cross-platform apps with Lua
Stars: ✭ 1,343 (+595.85%)
Mutual labels:  cross-platform, weex
Luaviewsdk
A cross-platform framework to build native, dynamic and swift user interface - 强大轻巧灵活的客户端动态化解决方案
Stars: ✭ 3,586 (+1758.03%)
Mutual labels:  cross-platform, weex
Awesome Weex
A curated list of awesome Weex guides, articles, sites, tools, projects and resources.
Stars: ✭ 1,539 (+697.41%)
Mutual labels:  cross-platform, weex
Robot
Native cross-platform system automation
Stars: ✭ 178 (-7.77%)
Mutual labels:  cross-platform
Dspdfviewer
Dual-Screen PDF Viewer for latex-beamer
Stars: ✭ 184 (-4.66%)
Mutual labels:  cross-platform
Weex Droplet Ui
水滴UI一个轻量级weex UI组件库,包含表单元素,tabbar,picker城市三级联动选择,actionsheet,switch等一系列常用组件
Stars: ✭ 177 (-8.29%)
Mutual labels:  weex
Nativescript Schematics
nativescript, mobile, schematics, angular
Stars: ✭ 176 (-8.81%)
Mutual labels:  cross-platform
Fishengine
Simple, Unity-like Game Engine.
Stars: ✭ 191 (-1.04%)
Mutual labels:  cross-platform
Camera awesome
A flutter plugin to handle Android / iOS camera
Stars: ✭ 186 (-3.63%)
Mutual labels:  cross-platform
Babylonhx
Port of Babylon.js 3D engine to Haxe.
Stars: ✭ 182 (-5.7%)
Mutual labels:  cross-platform
Gwork
Skinnable GUI with useful widget collection. Fork of GWEN.
Stars: ✭ 179 (-7.25%)
Mutual labels:  cross-platform
Sharik
Sharik is an open-source, cross-platform solution for sharing files via Wi-Fi or Mobile Hotspot
Stars: ✭ 185 (-4.15%)
Mutual labels:  cross-platform
Akavache
An asynchronous, persistent key-value store created for writing desktop and mobile applications, based on SQLite3. Akavache is great for both storing important data as well as cached local data that expires.
Stars: ✭ 2,185 (+1032.12%)
Mutual labels:  cross-platform
Youi
Next generation user interface and application development in Scala and Scala.js for web, mobile, and desktop.
Stars: ✭ 186 (-3.63%)
Mutual labels:  cross-platform
Gsygithubapp
超完整的React Native项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,配套文章,适合全面学习,对比参考。开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款Flutter版本 : https://github.com/CarGuo/GSYGithubAppFlutter 、原生 kotlin 版本 https://git…
Stars: ✭ 2,168 (+1023.32%)
Mutual labels:  weex
Weex Vue Starter Kit
weex starter kit in vue to use weexpack & weex both.(support hot-reload)
Stars: ✭ 182 (-5.7%)
Mutual labels:  weex
Minecraft World Downloader
Download Minecraft worlds, extend server's render distance
Stars: ✭ 187 (-3.11%)
Mutual labels:  cross-platform
Skiasharp
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
Stars: ✭ 2,493 (+1191.71%)
Mutual labels:  cross-platform

Hello Weex

简介

hello-weex包括一个Weex App,和自己扩展的WeexiOSKit。

weex version为 v0.7.0 - 10月16日的版本

Weex App 的代码位于 examples目录下

WeexiOSKit的代码位于 ios/playground/WeexDemo/WeexiOSKit目录下

运行

  1. 环境 0. 安装 Node.js 4.0+ 0. 在根目录下 0. npm install, 安装工程 0. ./start 到这里web版已经运行起来,浏览器输入http://localhost:12580/ 就能看到了。 0. Install iOS Environment 0. Install CocoaPods
  2. 运行 iOS playground 0. cd ios/playground 0. pod install 0. 在 Xcode里打开 WeexDemo.xcworkspace 0. 点击Xcode的 (Run 按钮) 或者用快捷键 cmd + r 0. 如果你想在真机上运行. 在 DemoDefine.h, 修改 CURRENT_IP 为你自己的IP

Weex App: Monkey for GitHub

Monkey主要是用来展示GitHub上的开发者的排名,以及仓库的排名。

WeexiOSKit

WeexiOSKit主要是扩展了一些iOS的Component和Module,这样在weex端就可以很好的使用了。

Component 包括segmented-control(UISegmentedControl),stepper(UIStepper),seek-bar(UISeekBar),search-bar(UISearchBar),date-picker(UIDatePicker)。

Module主要包括actionSheet(UIActionSheet),MBProgressHUD(MBProgressHUD,loading视图),geolocation(CLLocationManager坐标),vibration(震动)。

Component

Module

WeexiOSKit使用

Component

segmented-control:支持iOS & web

属性:items(segmented-control里的项目,以分号隔开),momentary(是否设置选中状态),tint-color(颜色)

event:onchange

<segmented-control 
	style="width: 240;height: 120;margin-top:20" 
	items="hello;world" 
	momentary= "false" 
	tint-color= "red" 
	onchange="onSCChangeAction">
</segmented-control>

stepper
属性: value(当前的值),step-value(默认为1),minimum-value(最小值),maximum-value="100(最大值),tint-color(颜色)

event:onchange

<stepper 
	style="width: 240;height: 120;margin-top:20" 
	value="20" 
	step-value= "10" 
	minimum-value="0" 
	maximum-value="100" 
	tint-color= "red" 
	onchange="onChangeAction">
</stepper>

seek-bar
属性: value(当前的值),minimum-value(最小值),maximum-value="100(最大值),minimum-track-tint-color,maximum-track-tint-color, thumb-tint-color, minimum-track-image-src,maximum-track-image-src,thumb-image-src

event:onchange

<seek-bar 
	style=" width: 400;height: 70;margin-top:20;margin-left:20" 
	minimum-value="0" 
	maximum-value="100" 
	value="50" 
	onchange="seekBarChange" 
	minimum-track-tint-color="blue" 
	maximum-track-tint-color="blue" 
	thumb-tint-color="red" > 
</seek-bar>

<seek-bar 
	style=" width: 160;height: 140;margin-top:20;margin-left:220" 
	minimum-value="0" 
	maximum-value="100" 
	value="50" 
	thumb-image-src="https://raw.githubusercontent.com/jainsourabh2/SayIt/master/iOS/SayIt/SayIt/rating1.png" 
	maximum-track-image-src="http://pic002.cnblogs.com/images/2012/348285/2012042611243397.png" 
	minimum-track-image-src="http://pic002.cnblogs.com/images/2012/348285/2012042611244465.png" 	
	onchange="imageSeekBarChange"> 
</seek-bar>

search-bar
属性: tint-color(颜色)

event:onclick

<search-bar 
	style="width: 300;height: 120;margin-top:20"  
	tint-color= "red" 
	onclick="onclicksearch">
</search-bar>

date-picker
属性: tint-color(颜色)

event:onchange

<date-picker 
	style="width: 640;height: 400;margin-top:20"  
	tint-color= "red" 
	onchange="onclickdatepicker" >
</date-picker>

Module

MBProgressHUD为loading模块 函数:showHUD(显示HUD,参数为title,detail,mode[枚举值indicator/text],cancelTitle,contentColor),hideHUD隐藏HUD()

  toast: function() {
    var MBProgressHUD = require('@weex-module/MBProgressHUD');
    MBProgressHUD.showHUD({title:"loading",contentColor:"red",mode:"indicator"});
    setTimeout(function () {
      MBProgressHUD.hideHUD();
    }, 2000)
  }

actionSheet 函数:actionSheetShow(参数为cancelButtonTitle,destructiveButtonTitle,otherButtonTitles(数组),以及一个回调)

  actionSheet: function() {
    var me= this;
    var actionSheet = require('@weex-module/actionSheet');
    actionSheet.actionSheetShow({
      'cancelButtonTitle': 'cancel',
      'destructiveButtonTitle': 'destructive',
      'otherButtonTitles': me.buttons
    }, function(result) {
    });
  }

geolocation 定位模块

函数getCurrentPosition(参数accuracy,distanceFilter)

  geolocationAction: function() {
    var me= this;
    var geolocation = require('@weex-module/geolocation');
    geolocation.getCurrentPosition({
      'accuracy': '1000',
      'distanceFilter': '10'
    }, function(result) {
      me.geolocationValue = JSON.stringify(result);
    }, function(result) {
    });
  }

vibration 函数:vibrate(真机震动)

  vibrate: function() {
    var vibration = require('@weex-module/vibration');
    vibration.vibrate()
  }

weex-web-kit

weex-web-kit代码位于html5/browser/weex-web-kit目录下

<segmented-control 
	style="width: 240;height: 120;margin-top:20" 
	items="hello;world" 
	momentary= "false" 
	tint-color= "red" 
	onchange="onChangeAction">
</segmented-control>

Licenses

All source code is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].