maskzh / rn-weui Goto Github PK
View Code? Open in Web Editor NEWreact native weui
react native weui
rt
example/containers/TabBar/ 没用andriod的实现,这个有计划提供吗?
启动报错,删除掉目录【/Users/bain.wang/Documents/workspace/ReactNative/ReactNativeWeuiExample/node_modules/rn-weui/node_modules/react-native】就可以启动了,应该是依赖重复了。
Failed to build DependencyGraph: @providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/bain.wang/Documents/workspace/ReactNative/ReactNativeWeuiExample/node_modules/rn-weui/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/bain.wang/Documents/workspace/ReactNative/ReactNativeWeuiExample/node_modules/react-native/local-cli/core/__fixtures__/files/package.json
This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/bain.wang/Documents/workspace/ReactNative/ReactNativeWeuiExample/node_modules/rn-weui/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/bain.wang/Documents/workspace/ReactNative/ReactNativeWeuiExample/node_modules/react-native/local-cli/core/__fixtures__/files/package.json
This error is caused by a @providesModule declaration with the same name across two different files.
at HasteMap._updateHasteMap (/Users/bain.wang/Documents/workspace/ReactNative/ReactNativeWeuiExample/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
at /Users/bain.wang/Documents/workspace/ReactNative/ReactNativeWeuiExample/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:133:31
npm ERR! Darwin 16.3.0
npm ERR! argv "/usr/local/Cellar/node/5.5.0/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v5.5.0
npm ERR! npm v4.0.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node node_modules/react-native/local-cli/cli.js start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ReactNativeWeuiExample package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/react-native/local-cli/cli.js start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ReactNativeWeuiExample
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ReactNativeWeuiExample
npm ERR! There is likely additional logging output above.
跑rn 0.46.0时报一堆类似下面的警告,最终红屏:
This warning is caused by a @providesModule declaration with the same name across two different files.
jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: /Users/coolguy/code/tt/fatboy/node_modules/rn-weui/node_modules/react-native/package.json collides with /Users/coolguy/code/tt/fatboy/node_modules/react-native/package.json
android的部分机型, 使用 MediaDescription 会报 "Error while updating property 'lineHeight' in shadow node of type: RCTText" 的异常, 应该是lineHeight非整形原因.
我写了一个demo,把example和webpack结合: https://github.com/cncowboy/rn-weui-demo.git
如何配置props style?
1、增加timeout参数,在内部增加setTimeout,以减少每次使用时都要手动创建timer。
2、增加show方法,如:show(text = defaultText, timeout = defaultTimeout)
具体可以参考ToastAndroid 。
谢谢!
在CellBody中
https://github.com/maskzh/rn-weui/blob/master/src/Cell/CellBody.js#L18
加入如下行为
https://github.com/maskzh/rn-weui/blob/master/src/Cell/CellFooter.js#L24
毕竟CellBody为文本的概率是很大的。 大神怎么看?
rn-weui是不是已经放弃了,目前集成上去报冲突,兼容性,,,各种
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.