Git Product home page Git Product logo

rn-weui's Introduction

Hi there 👋

rn-weui's People

Contributors

maskzh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rn-weui's Issues

Duplicate module name: react-native-vector-icons

启动报错,删除掉目录【/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.

Toast改进建议

1、增加timeout参数,在内部增加setTimeout,以减少每次使用时都要手动创建timer。
2、增加show方法,如:show(text = defaultText, timeout = defaultTimeout)
具体可以参考ToastAndroid 。
谢谢!

不兼容rn 0.46.0

跑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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.