mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add missing class annotations xplat/js
Reviewed By: SamChou19815 Differential Revision: D38373443 fbshipit-source-id: 1222c4845ebd6b72bd6f54af1a27cf8542dd883a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2fa04be062
commit
ee3d3c248d
@@ -24,7 +24,7 @@ const {
|
||||
|
||||
type MessageProps = $ReadOnly<{||}>;
|
||||
class Message extends React.PureComponent<MessageProps> {
|
||||
render() {
|
||||
render(): React.Node {
|
||||
return (
|
||||
<View style={styles.textBubbleBackground}>
|
||||
<Text style={styles.text}>Text Message</Text>
|
||||
@@ -36,9 +36,9 @@ class Message extends React.PureComponent<MessageProps> {
|
||||
type TextInputProps = $ReadOnly<{||}>;
|
||||
type TextInputState = {|text: string|};
|
||||
class TextInputBar extends React.PureComponent<TextInputProps, TextInputState> {
|
||||
state = {text: ''};
|
||||
state: TextInputState = {text: ''};
|
||||
|
||||
render() {
|
||||
render(): React.Node {
|
||||
return (
|
||||
<View style={styles.textInputContainer}>
|
||||
<TextInput
|
||||
@@ -63,7 +63,7 @@ class TextInputBar extends React.PureComponent<TextInputProps, TextInputState> {
|
||||
const BAR_HEIGHT = 44;
|
||||
type InputAccessoryProps = $ReadOnly<{||}>;
|
||||
class InputAccessoryViewExample extends React.Component<InputAccessoryProps> {
|
||||
render() {
|
||||
render(): React.Node {
|
||||
return (
|
||||
<>
|
||||
<ScrollView style={styles.fill} keyboardDismissMode="interactive">
|
||||
|
||||
Reference in New Issue
Block a user