react-native-touchbar开源项目

我要开发同款
匿名用户2016年11月30日
75阅读

技术信息

开源地址
https://github.com/ptmt/react-native-touchbar
授权协议
未知

作品详情

react-ative-touchbar是用于react-ative-macos的touchBar。

import React from 'react';import { View } from 'react-ative-macos';import TouchBar from 'react-ative-touchbar';export default myApp = () => (     <View style={styles.cotaier}>        <TouchBar>          <Butto title="Esc" oClick={() => alert('Hello, vim!')}/>          <Butto title="Courage" style={{ fotSize: 12 }} />          <View style={{ backgroudColor: 'red', flex: 1}} />        </TouchBar>        <Text style={styles.welcome}>          Welcome to React Native macOS!        </Text>        <Text style={styles.istructios}>          To get started, edit idex.macos.js        </Text>        <Text style={styles.istructios}>          Press Cmd+R to reload,{'\'}          Or use Developer Meu        </Text>     </View>)

需要macOSSierra10.12.1(12B2657)或更高版本上的Xcode8.1,在Xcode->Widows菜单中启用触摸板模拟器:

TODO:

不同于原生的TouchBarItems(像分段控件)

Iertouchbar

定制化

每个APP有多个Touchbar实例

功能介绍

react-native-touchbar 是用于 react-native-macos 的 touchBar。 import React from 'react';
import { Vie...

示例图片

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论