react-native-clean-form
react-native-clean-form copied to clipboard
Getting an error Unexpected token type: word
I just installed a new react-native app and this library with redux-form. I am using some code from examples provided in readme, but when I start the app I am getting red screen of the death with error Unexpected token type: word on it.
<Form>
<FieldsContainer>
<Fieldset>
<FormGroup>
<Input placeholder='Your phone'/>
</FormGroup>
</Fieldset>
</FieldsContainer>
</Form>
I searched on Github and found an issue where this error was discussed:
https://github.com/styled-components/styled-components/issues/559
https://github.com/styled-components/css-to-react-native/issues/20
I guess this is happening due to the modifications to css-to-react-native library. Any ideas how can I fix this?