Comments (8)
Excuse me,"react": "15.4.1", "react-native": "0.42.2", "react-native-calendars": "^1.4.0",
How can we support?thankyou!
from react-native-calendars.
Did a clean install
create-react-native-app CalendarsTryout
cd CalendarsTryout
npm install --save react-native-calendars
added
import { Calendar} from 'react-native-calendars'
npm run ios
Did not get any error
from react-native-calendars.
For what its worth, I had this same issue. But upgrading RN to 0.44 sorted it out.
from react-native-calendars.
What I can do in case that I cannot update RN to 0.44?
Any suggestions?
Thanks,
Joao
from react-native-calendars.
what version of RN are you using?
from react-native-calendars.
Hi, Thanks for the reply.
So, I was using 0.43.3
So, I just changed to:
"native-base": "^2.1.4",
"react": "^16.0.0-alpha.12",
"react-native": "^0.44.0",
And I have the fear that I should not have done it. :(
I'm now getting a new error in the node:
Looking for JS files in
D:\Joao\git\F1Softwares\Code\Mobile
React packager ready.
Loading dependency graph, done.
error: bundling: UnableToResolveError: Unable to resolve module `react/lib/ReactPropTypes` from `D:\Joao\git\F1Softwares\Code\Mobile\node_modules\react-native\Libraries\Image\Image.android.js`: Module does not exist in the module map or in these directories:
D:\Joao\git\F1Softwares\Code\Mobile\node_modules\react-native\node_modules\react\lib
, D:\Joao\git\F1Softwares\Code\Mobile\node_modules\react\lib
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.
at ResolutionRequest._resolveNodeDependency (D:/Joao/git/F1Softwares/Code/Mobile/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:394:11)
at tryResolveSync (D:/Joao/git/F1Softwares/Code/Mobile/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:136:20)
at tryResolveSync (D:/Joao/git/F1Softwares/Code/Mobile/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:66:12)
at ResolutionRequest.resolveDependency (D:/Joao/git/F1Softwares/Code/Mobile/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:134:22)
at dependencyNames.map.name (D:/Joao/git/F1Softwares/Code/Mobile/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:145:59)
at Array.map (native)
at ResolutionRequest.resolveModuleDependencies (D:/Joao/git/F1Softwares/Code/Mobile/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:145:42)
at Promise.resolve.then (D:/Joao/git/F1Softwares/Code/Mobile/node_modules/react-native/packager/src/node-haste/DependencyGraph/ResolutionRequest.js:169:21)
at process._tickCallback (internal/process/next_tick.js:103:7)
Bundling `index.android.js` 96.5% (786/800), failed.
Any idea what could be the problem?
I already deleted the node_modules and made a npm install and the problem is still persisting... :(
Thanks,
Joao
from react-native-calendars.
Ok,
I was able to get it working now!
I have this in my package.json:
"native-base": "^2.1.4",
"react": "^16.0.0-alpha.6",
"react-native": "^0.44.0",
"react-native-calendars": "^1.4.0",
I also needed to make this command:
npm install [email protected] --save
The line above was the most important part. Not sure if pointing out to the alpha.12 will still work, but I believe that will.
Correct me if I'm wrong, but I believe that doing --save will save the react to all projects and not just mine. I believe that this is what made the trick to get the error above being removed.
Thanks for your help!
Cheers,
Joao Sauer
from react-native-calendars.
Hey, I'm still having this problem:
Cannot read property 'style' of undefined TypeError: Cannot read property 'style' of undefined at Module../node_modules/react-native-calendars/src/calendar/index.js (http://localhost:6006/vendors~app.b77b3c51f5ec6207931f.bundle.js:192876:24) at __webpack_require__ (http://localhost:6006/runtime~app.b77b3c51f5ec6207931f.bundle.js:849:30) at fn (http://localhost:6006/runtime~app.b77b3c51f5ec6207931f.bundle.js:151:20) at Module../node_modules/react-native-calendars/src/index.js (http://localhost:6006/vendors~app.b77b3c51f5ec6207931f.bundle.js:195434:67) at __webpack_require__ (http://localhost:6006/runtime~app.b77b3c51f5ec6207931f.bundle.js:849:30)
I tried looking at it myself but couldn't find a fix, any idea what it could be?
from react-native-calendars.
Related Issues (20)
- Add StandWithPalentine banner
- How will manually pick a date to start from ? HOT 1
- setNativeProps is not a function when pressing the knob of Agenda (tested with chrome)
- Asking a question regarding day header styling HOT 1
- ExpandableCalendar
- Performance : limit rerender of calendar
- March 31 missing in Calendar
- Expandable calendar height issue: Last week of month is not shown with customized design HOT 4
- Invariant Violation: requireNativeComponent: "RNSVGSvgView" was not found in the UIManager got this issue every time when trying to install react-native-calender
- Create Event similar to IOS calendars with Timeline compoenent, on LongPress where backgorundColor changes and reflects selectedTime of 1h?
- Facing date selection change issue on Expandable calendar week change
- im facing issue while long pressing on timeline im getting a day befores date,as an event
- Expandable calendar always shows the first day auto selected HOT 8
- How to get Data inside AgendaList
- Use custom child component rather Agenda/Timeline while using CalendarProvider HOT 1
- Calender
- bug in calendarListScreen.tsx in Example
- Unable to select days when ExpandableCalendar is closed
- TypeError: Cannot read property 'getTime' of undefined, js engine: hermes when using custom component
- dayComponent too many renders HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-calendars.