GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix Flow type for React Native (#17992) · react/react@3f814e7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-native-renderer/src
    • ReactNativeComponent.js
    • ReactNativeTypes.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-native-renderer/src/ReactNativeComponent.js‎

Copy file name to clipboardExpand all lines: packages/react-native-renderer/src/ReactNativeComponent.js
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,12 @@ export default function(
4141
*
4242
* @abstract
4343
*/
44-
class ReactNativeComponent<Props, State = void> extends React.Component<
45-
Props,
46-
State,
47-
> {
44+
class ReactNativeComponent<Props> extends React.Component<Props> {
4845
/**
4946
* Due to bugs in Flow's handling of React.createClass, some fields already
5047
* declared in the base class need to be redeclared below.
5148
*/
5249
props: Props;
53-
state: State;
5450

5551
/**
5652
* Removes focus. This is the opposite of `focus()`.
Collapse file

‎packages/react-native-renderer/src/ReactNativeTypes.js‎

Copy file name to clipboardExpand all lines: packages/react-native-renderer/src/ReactNativeTypes.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ type SecretInternalsFabricType = {
137137
* Provide minimal Flow typing for the high-level RN API and call it a day.
138138
*/
139139
export type ReactNativeType = {
140-
NativeComponent: _InternalReactNativeComponentClass<{...}>,
140+
NativeComponent: typeof ReactNativeComponent,
141141
findHostInstance_DEPRECATED(
142142
componentOrHandle: any,
143143
): ?ElementRef<HostComponent<mixed>>,
@@ -157,7 +157,7 @@ export type ReactNativeType = {
157157
};
158158

159159
export type ReactFabricType = {
160-
NativeComponent: _InternalReactNativeComponentClass<{...}>,
160+
NativeComponent: typeof ReactNativeComponent,
161161
findHostInstance_DEPRECATED(componentOrHandle: any): ?HostComponent<mixed>,
162162
findNodeHandle(componentOrHandle: any): ?number,
163163
dispatchCommand(handle: any, command: string, args: Array<any>): void,

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.