mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-14 18:09:24 +08:00
chore: upgrade flow and dependencies (#200)
This commit is contained in:
committed by
Ferran Negre
parent
4ba4f279b1
commit
bb51586351
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user