This commit is contained in:
Ibrahem 2023-08-16 13:13:38 +03:00
parent 728effc935
commit a10cfa6e1a
No known key found for this signature in database
GPG Key ID: 5526EBA6000E583E
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'
type TransparentVideoProps = { type TransparentVideoProps = {
style: ViewStyle; style: ViewStyle;
source?: any; source?: any;
loop?: boolean; disableLoop?: boolean;
}; };
const ComponentName = 'TransparentVideoView'; const ComponentName = 'TransparentVideoView';
@ -28,7 +28,7 @@ class TransparentVideo extends React.PureComponent<TransparentVideoProps> {
uri, uri,
type: source.type || '', type: source.type || '',
}, },
loop: nativeProps.loop ?? true, disableLoop: nativeProps.disableLoop ?? true,
}); });
return <TransparentVideoView {...nativeProps} />; return <TransparentVideoView {...nativeProps} />;