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.

React-Native: comments not supported

See original GitHub issue

Version

2.0.0

Reproduction

const A = styled.View`
  /* I'm a comment */
`

const B = () => <A />
// render this in react-native

Steps to reproduce

Add any comment in a styled-component definition.

Expected Behavior

Comments get stripped out.

Actual Behavior

Node of type comment not supported as an inline style

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mxstbrcommented, Dec 15, 2017

Fixed in #1041 by @ckknight, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Comments - 2 Ways to Add Comments in JSX
Add Comments in React Native JSX using Visual Studio Code Editor. Ctrl + / on Windows + Linux. Cmd + / on MacOS....
Read more >
How to use comments in React - Stack Overflow
Two ways to add comments in React Native · // (double forward slash) is used to comment only a single line in React...
Read more >
How to comment in React JSX - Wes Bos
To install, Preferences → Browse Packages → Put snippet in User folder . I'm still on a hunt for a fix to get...
Read more >
JavaScript Comments - W3Schools
Any text between /* and */ will be ignored by JavaScript. This example uses a multi-line comment (a comment block) to explain the...
Read more >
React Native Not Working : r/Jetbrains - Reddit
Dont create the project through IntelliJ (or Webstorm). The official ReactNative guide recommends using cli to creat projects via npx react- ...
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