Emotion: Emotion native will not working when comments inside.

Created on 22 Aug 2018  路  3Comments  路  Source: emotion-js/emotion

So basically this will not work.

const Container = styled.View`
  flex: 1;
  /* 
  justify-content: center;
  align-items: center;
  background-color: white; */
`;

And there will be no error, so user won't be able to find ui specific bug.
The only solution I come up is remove comments first.
Using regex like this \/\*[^*]*\*+([^/*][^*]*\*+)*\/ will remove css comments.

bug

Most helpful comment

Hi @rockmandash! Thanks for reporting the issue. I'll review the test cases again and see if I can fix it, soon.

All 3 comments

Hi @rockmandash! Thanks for reporting the issue. I'll review the test cases again and see if I can fix it, soon.

@nitin42 Thank you.

Some progress here #840

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mitchellhamilton picture mitchellhamilton  路  3Comments

desmap picture desmap  路  3Comments

pimmey picture pimmey  路  3Comments

meebix picture meebix  路  3Comments

kentcdodds picture kentcdodds  路  3Comments