question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'style' of undefined

See original GitHub issue

Only after import it using `import { Calendar} from 'react-native-calendars;

and it’s shows (Cannot read property ‘style’ of undefined ) and totally stopped

simulator screen shot jun 17 2017 7 25 10 am

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jun 29, 2017

Excuse me,"react": "15.4.1", "react-native": "0.42.2", "react-native-calendars": "^1.4.0",How can we support?thankyou!

0reactions
rockerrecruitcommented, Jul 17, 2020

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'style' of undefined -- Uncaught Type Error
This works when I try it here: jsfiddle.net/du2ot93e - I think your if statement is failing. · Do you reach the if statement?...
Read more >
How To Fix Cannot Read Property 'style' of Null in JavaScript
This error boils down to one problem. The element you are trying to access does not exist in the DOM (document object model)...
Read more >
Cannot read property 'style' of undefined" browser console error
Symptoms. Form is in a broken state (example - right click menu options, related lists, reference fields etc are unavailable) as a result...
Read more >
Cannot read property 'style' of undefined · Issue #253 - GitHub
I fixed it just by changing line no. 29 from containerStyle: View.propTypes.style, to containerStyle: ViewPropTypes.style, . Don't forget to ...
Read more >
Uncaught TypeError: Cannot read property 'style' of undefined
What is the reason that we get an error "Uncaught TypeError: Cannot read property 'style' of undefined" in the Daeja Virtual logs?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found