项目
在 GitHub 查看 
ptmt/react-native-touchbar
关于
适用于 react-native-macos 的 TouchBar。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文import React from 'react';
import { View } from 'react-native-macos';
import TouchBar from 'react-native-touchbar';
export default myApp = () => (
<View style={styles.container}>
<TouchBar>
<Button title="Esc" onClick={() => alert('Hello, vim!')}/>
<Button title="Courage" style={{ fontSize: 12 }} />
<View style={{ backgroundColor: 'red', flex: 1}} />
</TouchBar>
<Text style={styles.welcome}>
Welcome to React Native macOS!
</Text>
<Text style={styles.instructions}>
To get started, edit index.macos.js
</Text>
<Text style={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Or use Developer Menu
</Text>
</View>
)

You need Xcode 8.1 on macOS Sierra 10.12.1 (12B2657) or later.
Enable Touchbar simulator in Xcode -> Windows menu:

TODO:
- Different native TouchBarItems (like segmented controls)
- Inner touchbar (touchbar inside touchbars)
- Customization
- Several Touchbar instances per app
探索相关项目
加载中…