Skip to content

Commit

Permalink
add proptype
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoima525 committed Dec 16, 2017
1 parent 589c6cd commit c22b266
Show file tree
Hide file tree
Showing 6 changed files with 7,210 additions and 5 deletions.
3 changes: 2 additions & 1 deletion js/components/InputComponent.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {PropTypes, Component} from 'react';
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {View, StyleSheet, TextInput, Button} from 'react-native';

class InputComponent extends Component {
Expand Down
3 changes: 2 additions & 1 deletion js/components/ResultListComponent.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {PropTypes} from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import {ActivityIndicator, ListView, Text, StyleSheet, TouchableHighlight, View} from 'react-native';

const ResultListComponent = (props) => {
Expand Down
3 changes: 2 additions & 1 deletion js/containers/Input.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes, Component } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import InputComponent from '../components/InputComponent';
Expand Down
5 changes: 3 additions & 2 deletions js/containers/ResultList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {PropTypes, Component} from 'react';
import {View,ListView,StyleSheet} from 'react-native';
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {View, ListView, StyleSheet} from 'react-native';
import {connect} from 'react-redux';
import ResultListComponent from '../components/ResultListComponent';
import receivePosts from '../actions';
Expand Down
Loading

0 comments on commit c22b266

Please sign in to comment.