项目作者: clayrisser

项目描述 :
React Native bridge for gtk desktop applications
高级语言: TypeScript
项目地址: git://github.com/clayrisser/react-gtk.git
创建时间: 2017-05-22T09:52:19Z
项目社区:https://github.com/clayrisser/react-gtk

开源协议:MIT License

下载


react-gtk

Financial Contributors on Open Collective GitHub stars

cross-platform react native desktop applications

Please ★ this repo if you found it useful ★ ★ ★

Built with Node GTK and Gjsify

GTK 4.0 Support Coming Soon!

After a few years away from this project, I have finally returned. I will
be refactoring the entire project from scratch to reach general availablilty.
The new refactor will support GTK 4.0
and CSS using Yoga.

You can follow the development in the React GTK Discord

JOIN DISCORD

FILE ISSUE

This project is under active development. Please help by sharing your
experience, bugs, comments, complaints, etc . . .

If you think it, say it :laughing:

Features

  • supports native osx desktop
  • supports native linux desktop
  • supports native windows desktop

Installation

  1. npm install --save @react-gtk/binding

Dependencies

Gtk 3

Make sure you have gtk 3 installed on your operating system.

Ubuntu

  1. sudo apt install libgtk-3-dev libgirepository1.0-dev

OSX

  1. brew install gtk+3

Usage

  1. import React, { Component } from 'react';
  2. import { render, Button, Box } from '@react-gtk/binding';
  3. class App extends Component {
  4. render() {
  5. return (
  6. <Box>
  7. <Button label="One" ></Button>
  8. <Button label="Two" ></Button>
  9. </Box>
  10. );
  11. }
  12. }
  13. render(<App ></App>, 'My App');

Example

  1. git clone https://github.com/codejamninja/react-gtk.git
  2. cd react-gtk/examples/elements
  3. npm install
  4. npm run start

Support

Submit an issue

Screenshots

Contribute a screenshot

Contributing

Review the guidelines for contributing

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]










License

MIT License

Jam Risser © 2019

Changelog

Review the changelog

Credits

Support on Liberapay

A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.

Add some fuel if you’d like to keep me going!

Liberapay receiving
Liberapay patrons