react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
15 lines (12 loc) • 463 B
JavaScript
;
import { addWhitelistedNativeProps } from '../ConfigHelper';
// @ts-expect-error This overload is required by our API.
export function createAnimatedPropAdapter(adapter, nativeProps) {
const nativePropsToAdd = {};
nativeProps === null || nativeProps === void 0 || nativeProps.forEach(prop => {
nativePropsToAdd[prop] = true;
});
addWhitelistedNativeProps(nativePropsToAdd);
return adapter;
}
//# sourceMappingURL=PropAdapters.js.map