glenhughes / react-native-countdown-clock Goto Github PK
View Code? Open in Web Editor NEWREACT NATIVE Test Countdown Clock
License: Other
REACT NATIVE Test Countdown Clock
License: Other
I installed and referenced in my file... but I get an error Can't find variable CountDownTimer... any thoughts?
Hi there!
I should preface this with saying that I am brand new to React Native (and using npm
as a package manager).
I have the basic React Native app (the one you get when you run react-native init FooBar
), and I wanted to add your countdown clock to it. I ran npm install react-native-countdown-clock --save
, and added the import
statement and CountdownTimer
tag to my index.ios.js
. However, I began getting errors from npm
about naming collisions.
Besides the countdown clock, my other dependencies are:
"react": "~15.4.1",
"react-native": "0.42.0"
And here is the error when running npm start
:
jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: /Users/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native/package.json collides with /Users/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native-countdown-clock/node_modules/react-native/package.json
This warning is caused by a @providesModule declaration with the same name across two different files.
Failed to build DependencyGraph: @providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native-countdown-clock/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/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native-countdown-clock/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/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
at p.getName.then.name (/Users/pbaranay/Desktop/Timer/react/DraftTimer/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:133:31)
I hope this is enough information to help you reproduce, or help me fix whatever error I've caused myself ;)
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.