chore: upgrade flow and dependencies (#200)

This commit is contained in:
Satyajit Sahoo
2017-11-07 15:51:17 +05:30
committed by Ferran Negre
parent 4ba4f279b1
commit bb51586351
90 changed files with 2190 additions and 1708 deletions

View File

@@ -1,7 +1,6 @@
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as React from 'react';
import { View, StyleSheet } from 'react-native';
import {
Caption,
@@ -11,12 +10,14 @@ import {
Title,
withTheme,
} from 'react-native-paper';
import type { Theme } from 'react-native-paper/types';
class TextExample extends Component {
type Props = {
theme: Theme,
};
class TextExample extends React.Component<Props> {
static title = 'Typography';
static propTypes = {
theme: PropTypes.object.isRequired,
};
render() {
const { theme: { colors: { background } } } = this.props;