preact-responder-event-plugin:一个库将react-native-web和preact结合在一起

时间:2021-05-17 08:53:52
【文件属性】:
文件名称:preact-responder-event-plugin:一个库将react-native-web和preact结合在一起
文件大小:237KB
文件格式:ZIP
更新时间:2021-05-17 08:53:52
TypeScript 该库实现了react-native-web所需的react native的Gesture Responder System 。 它将和放在一起,就像react-dom为react和react-native-web所做的一样。 现在,您可以使用preact将React本机应用程序构建到Web应用程序中。 压缩后为3KB,无需担心大小。 安装 它取决于preact 10和react-native-web,因此您也需要安装它们。 npm i preact-responder-event-plugin react-native-web preact@next 或者 yarn add preact-responder-event-plugin react-native-web preact@next 用法 您需要做的就是在webpack配置中添加一些别名,以隐式替换react-native
【文件预览】:
preact-responder-event-plugin-master
----.gitignore(952B)
----tsconfig.json(276B)
----README.md(8KB)
----CHANGELOG.md(867B)
----.prettierrc(114B)
----LICENSE(1KB)
----mangle.json(2KB)
----package.json(1KB)
----dist()
--------index.js.map(16KB)
--------index.js(3KB)
----src()
--------index.js(9KB)
--------index.ts(11KB)
----mangle()
--------mangle.json(884B)
--------index.js(737B)
----example()
--------tsconfig.json(393B)
--------package.json(734B)
--------src()
--------index.js(124KB)
--------index.html(490B)
--------webpack.config.js(931B)
--------yarn.lock(304KB)
----index.d.ts(2KB)
----.npmignore(974B)
----yarn.lock(142KB)

网友评论