Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ npm-debug.log
# examples
examples/FloatingLabel/node_modules/
examples/FloatingLabel/lib/

# JetBrains IDEs
.idea
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ React Native TextInput styled with Material Design.
npm install react-native-md-textinput
```

#### Supporting older versions of react-native
| RN version | Library Version |
|------------|-----------------|
| \>= 0.46 | \>= 2.1.0 |
| < 0.46 | 2.0.4 |

## Usage

I'm going to refer to the `react-native-md-textinput` Component as `TextField`. You can name it whatever you like when importing it.
Expand Down
3 changes: 2 additions & 1 deletion lib/FloatingLabel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
import React, {Component, PropTypes} from "react";
import React, {Component} from "react";
import PropTypes from "prop-types";
import {StyleSheet, Animated} from "react-native";

export default class FloatingLabel extends Component {
Expand Down
3 changes: 2 additions & 1 deletion lib/TextField.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
import React, {Component, PropTypes} from "react";
import React, {Component} from "react";
import PropTypes from "prop-types";
import {View, TextInput, StyleSheet} from "react-native";

import Underline from './Underline';
Expand Down
3 changes: 2 additions & 1 deletion lib/Underline.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
import React, {Component, PropTypes} from "react";
import React, {Component} from "react";
import PropTypes from "prop-types";
import {View, StyleSheet, Animated} from "react-native";

export default class Underline extends Component {
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-md-textinput",
"version": "2.0.4",
"version": "2.1.0",
"description": "React Native TextInput styled with Material Design.",
"main": "lib/TextField.js",
"repository": {
Expand All @@ -19,5 +19,8 @@
},
"author": "Evan Johnson",
"license": "MIT",
"homepage": "https://github.com/evblurbs/react-native-md-textinput#readme"
"homepage": "https://github.com/evblurbs/react-native-md-textinput#readme",
"peerDependencies": {
"react-native": ">=0.46.0"
}
}