mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-19 01:46:37 +08:00
chore: upgrade flow and dependencies (#200)
This commit is contained in:
committed by
Ferran Negre
parent
4ba4f279b1
commit
bb51586351
@@ -1,11 +1,20 @@
|
||||
/* @flow */
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ScrollView, StyleSheet } from 'react-native';
|
||||
import { TextInput, withTheme } from 'react-native-paper';
|
||||
import type { Theme } from 'react-native-paper/types';
|
||||
|
||||
class TextInputExample extends Component {
|
||||
type Props = {
|
||||
theme: Theme,
|
||||
};
|
||||
|
||||
type State = {
|
||||
text: string,
|
||||
};
|
||||
|
||||
class TextInputExample extends React.Component<Props, State> {
|
||||
static title = 'TextInput';
|
||||
static propTypes = {
|
||||
theme: PropTypes.object.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user