Skip to content

ericlewis/react-bangle

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Warning

This is super incomplete. Styling isn't fully supported in this version yet.

Usage Example:

import React from 'react';
import Renderer from 'react-bangle';
import Base from 'react-bangle/elements/Base';

class Root extends Base {
  render() {
    // g.s("Hello World!", 10, 0)
    console.log(`g${super.render()}`)
  }
}

function App() {
  return (
    <view style={{paddingLeft: 10}}>
      <text>Hello World!</text>
    </view>
  );
}

Renderer.render(<App />, new Root());

About

a really naive way to render bangle.js commands from react.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published