Skip to content

Commit 0f15e1f

Browse files
authored
Drop usage of deprecated React TypeScript types (#400)
1 parent ccafe14 commit 0f15e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typings/react-native-animatable.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ImageStyle
99
} from 'react-native';
1010
import {
11-
StatelessComponent,
11+
FunctionComponent,
1212
ComponentClass,
1313
ClassicComponentClass,
1414
Component
@@ -186,7 +186,7 @@ export function initializeRegistryWithDefinitions(
186186

187187
type GetPropertyType<B, K extends keyof B> = B[K];
188188
export function createAnimatableComponent<P extends {style?: any}, S = GetPropertyType<P, 'style'>> (
189-
Component: ComponentClass<P> | StatelessComponent<P> | ClassicComponentClass<P>
189+
Component: ComponentClass<P> | FunctionComponent<P> | ClassicComponentClass<P>
190190
) : AnimatableComponent<P, S>;
191191

192192
export const View : AnimatableComponent<ViewProperties, ViewStyle>;

0 commit comments

Comments
 (0)