esbenp / react-native-clean-form

Easy react-native forms using bootstrap-like syntax with redux-form+immutablejs integration. Styled using styled-components
http://esbenp.github.io/2017/01/06/react-native-redux-form-immutable-styled-components/
MIT License
478 stars 76 forks source link

Getting an error Unexpected token type: word #54

Open iamawebgeek opened 7 years ago

iamawebgeek commented 7 years ago

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?