react-bangle-lib
v1.0.3
Published
Naive renderer to output bangle.js commands from react
Downloads
11
Readme
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());