Skip to content

ionut-movila/react-native-keyboard-done-button

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-keyboard-done-button

Keyboard done button component for React Native. Based on Danleveille`s demo app (ES2015 & React 15.5.0+ improvements).

Installation

$ npm install react-native-keyboard-done-button --save

Usage

import React, { Component } from 'react';
import { View, TextInput } from 'react-native';
import DoneButton from 'react-native-keyboard-done-button';

export default class Test extends Component {
  render() {
    return (
      <View>
        <TextInput
          placeholder="Phone"
          placeholderTextColor="#000"
          returnKeyType="next"
          defaultValue={this.phone}
        />
        <DoneButton
          title="Done!"   //not required, default value = `Done`
          style={{ backgroundColor: 'red' }}  //not required
          doneStyle={{ color: 'green' }}  //not required
        />
      </View>
    );
  }
}

About

Keyboard done button component for React Native.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%