Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When including a <Select /> element I get TypeError: undefined is not an object (evaluating 'theme.BaseInput') error #84

Open
woutersmet opened this issue Apr 24, 2018 · 0 comments

Comments

@woutersmet
Copy link

(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 [email protected] 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:

<Select
				              name="waarde"
				              label="Waarde"	
				              options={amountOptions}
				              placeholder="10 €"
				              />

So something seems to be going wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant