diff --git a/docs/strict-typescript-api.md b/docs/strict-typescript-api.md index a426511835b..5c2a39894f0 100644 --- a/docs/strict-typescript-api.md +++ b/docs/strict-typescript-api.md @@ -145,27 +145,6 @@ The following APIs were previously named as `*Static` plus a variable declaratio - `SettingsStatic` - `VibrationStatic` -### Some core components are now function components instead of class components - -- `View` -- `Image` -- `TextInput` -- `Modal` -- `Text` -- `TouchableWithoutFeedback` -- `Switch` -- `ActivityIndicator` -- `ProgressBarAndroid` -- `InputAccessoryView` -- `Button` -- `SafeAreaView` - -Due to this change, accessing ref types of these views requires using `React.ComponentRef` pattern which works as expected for both class and function components, e.g.: - -```ts title="" -const ref = useRef>(null); -``` - ## Other breaking changes ### Changes to Animated types diff --git a/website/versioned_docs/version-0.85/strict-typescript-api.md b/website/versioned_docs/version-0.85/strict-typescript-api.md index a426511835b..5c2a39894f0 100644 --- a/website/versioned_docs/version-0.85/strict-typescript-api.md +++ b/website/versioned_docs/version-0.85/strict-typescript-api.md @@ -145,27 +145,6 @@ The following APIs were previously named as `*Static` plus a variable declaratio - `SettingsStatic` - `VibrationStatic` -### Some core components are now function components instead of class components - -- `View` -- `Image` -- `TextInput` -- `Modal` -- `Text` -- `TouchableWithoutFeedback` -- `Switch` -- `ActivityIndicator` -- `ProgressBarAndroid` -- `InputAccessoryView` -- `Button` -- `SafeAreaView` - -Due to this change, accessing ref types of these views requires using `React.ComponentRef` pattern which works as expected for both class and function components, e.g.: - -```ts title="" -const ref = useRef>(null); -``` - ## Other breaking changes ### Changes to Animated types