esbenp / esbenp/react-native-clean-form
When including a <Select /> element I get TypeError: undefined is not an object (evaluating 'theme.BaseInput') error
- Dominant language
- JavaScript
- Stars
- 472
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
(note that I installed straight from github using npm install git+https://github.com/esbenp/react-native-clean-form/ to avoid the 'propStyles/PopStyles' error, not from npm. Also, I get this warning when doing npm install which might be relevant? npm WARN styled-components@3.2.6 requires a peer of react@>= 0.14.0 < 17.0.0-0 but none is installed. You must install peer dependencies yourself.)
More specifically it says the error takes place in Select (at index.js:91), so this line:
`color: value ? theme.Input.color : theme.BaseInput.placeholderColor,`
Here is my relevant code:
imports:
```
import {
ActionsContainer,
Button,
FieldsContainer,
Fieldset,
Form,
FormGroup,
Input,
Select,
Label,
Switch
} from 'react-native-clean-form'
```
and in my form component:
```
```
So something seems to be going wrong
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.