CLI: Add README to app template, lint

Reviewed By: mkonicek

Differential Revision:
D4522116
Ninja: oss only

fbshipit-source-id: d17e0e8badcfe97eaea092e5d5274e02904a534d
This commit is contained in:
Martin Konicek
2017-02-08 11:47:00 +00:00
parent 2bc2ae761a
commit 021e754c8f
11 changed files with 72 additions and 22 deletions
@@ -1,3 +1,5 @@
'use strict';
/* @flow */
import React, { PropTypes, Component } from 'react';
@@ -10,7 +12,7 @@ import {
} from 'react-native';
type Props = {
offset?: number;
offset?: number,
}
type State = {
@@ -41,7 +43,7 @@ type State = {
*/
const KeyboardSpacer = () => (
Platform.OS === 'ios' ? <KeyboardSpacerIOS /> : null
)
);
class KeyboardSpacerIOS extends Component<Props, Props, State> {
static propTypes = {
@@ -1,3 +1,5 @@
'use strict';
import React, { Component } from 'react';
import {
Platform,
@@ -21,7 +23,7 @@ const Touchable = ({onPress, children}) => {
);
} else {
return (
<TouchableHighlight onPress={onPress} underlayColor='#ddd'>
<TouchableHighlight onPress={onPress} underlayColor="#ddd">
{child}
</TouchableHighlight>
);