GeekyAnts / GeekyAnts/NativeBase-KitchenSink

Button onPress not giving field values using redux-form and floating Input

Open
#99 1 comment 0 reactions 0 assignees View on GitHub
awaiting response
Dominant language
JavaScript
Stars
2.2k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

Using example: http://docs.nativebase.io/docs/examples/ReduxFormExample.html
The example does not actually submit the form. When trying to see the values on button press, I'm getting no field values-

Form-
```js

const FloatingInput =
({ input, label, type, secure, returnKeyType, meta: { touched, error, warning } }) => {
var hasError = false
if (error !== undefined) {
hasError = true
}
return (

{label}


)
}



console.log('submitting form', values)}
>
Login

```
```js
export default reduxForm({
form: 'login'
})(LoginForm)
```

Console log shows this instead of the values-
```
submitting form
Proxy {dispatchConfig: Object, _targetInst: FiberNode, nativeEvent: Object, type: undefined, target: 30, …}
```

imports-
```js
import React, { Component } from 'react'
import { Form, Button, Text } from 'native-base'
import { Field, reduxForm } from 'redux-form'
```

Can anyone tell me what I'm missing?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.