mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Creates an experimental stub implementation of `createAnimatedComponent` to be implemented in future commits. Changelog: [Internal] Reviewed By: lunaleaps, kacieb Differential Revision: D28799738 fbshipit-source-id: dc3fbee557db353de6807bd87561f8f372d7cab5
24 lines
693 B
JavaScript
24 lines
693 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
*/
|
|
|
|
import * as React from 'react';
|
|
|
|
/**
|
|
* Experimental implementation of `createAnimatedComponent` that is intended to
|
|
* be compatible with concurrent rendering.
|
|
*/
|
|
export default function createAnimatedComponent<TProps: {...}, TInstance>(
|
|
Component: React.AbstractComponent<TProps, TInstance>,
|
|
): React.AbstractComponent<TProps, TInstance> {
|
|
return React.forwardRef((props, ref) => {
|
|
throw new Error('createAnimatedComponent: Not yet implemented.');
|
|
});
|
|
}
|