INNER CODE UNIT · TypeScript
AnimatedImageConfig
nodegui/react-nodegui · src/components/AnimatedImage/index.ts:6
class AnimatedImageConfig extends ComponentConfig {
tagName = RNAnimatedImage.tagName;
shouldSetTextContent(nextProps: AnimatedImageProps): boolean {
return true;
}
createInstance(
newProps: AnimatedImageProps,
rootInstance: AppContainer,
context: any,
workInProgress: Fiber
): RNAnimatedImage {
const widget = new RNAnimatedImage();
widget.setProperty("scaledContents", true);
widget.setProps(newProps, {});
return widget;
}
commitMount(
instance: RNAnimatedImage,