eduardomoroni/mtgx

View on GitHub
src/modules/form/components/dropdownInputForm.ios.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow

import React, { PureComponent } from 'react'
import { View, TextInput } from 'react-native'
import { InputLabel } from './index'
import { sharedStyles } from './styles/shared.styles'

// TODO: This dropdown needs to be implemented
export class DropdownInputForm extends PureComponent {
  render () {
    const { onChange, name } = this.props.input

    return (
      <View style={sharedStyles.container}>
        <InputLabel label={name} />
        <TextInput
          style={sharedStyles.input}
          onChangeText={onChange}
          autoCorrect={false}
          autoCapitalize='characters'
        />
      </View>
    )
  }
}

export default DropdownInputForm