mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user