lucky-web
v1.0.15
Published
lucky-web是个使用yoga的布局引擎和React,来绘制canvas的渲染框架,支持react 17以上的hook
Downloads
152
Maintainers
Readme
lucky-web
lucky-web是个使用yoga的布局引擎和React,来绘制canvas的渲染框架,支持react 17以上的hook
Install
$ npm i lucky-web -S
demo
文档
使用
import React from 'react';
import {render, View, ScrollView} from 'lucky-web';
const style = {
main: {
flex: 1,
width: '100%',
backgroundColor: 'rgba(49, 24, 124, 1)'
},
}
const App = () => {
return (
<ScrollView style={style.main}>
<Text>HELLO WORLD </Text>
</ScrollView >
)
}
const app = render(<App />, document.getElementById('app')!, {});
<div id='app'}></div>