esbenp / esbenp/react-native-clean-form
InitialValues with redux-form
Open
- Dominant language
- JavaScript
- Stars
- 472
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to add an initial value as I'm doing it with a standard redux-form, but nothing happens.
It is not documented, how can I achieve this?
Here is the snippet of code:
```
function mapStateToProps(state) {
const firstName = state.auth.firstName;
const initialValues = {
firstName
};
return {
initialValues
};
}
export default connect(mapStateToProps)(
reduxForm({ form: "Form" })(Form)
);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.