feat: update `style` prop to use `StyleProp` instead of `ViewStyle` (#6)

Co-authored-by: Devin Lumley <2636402+devinwl@users.noreply.github.com>
This commit is contained in:
Devin Haska 2023-10-17 11:22:12 -07:00 committed by GitHub
parent f2376d11c3
commit b22998c398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
import React from 'react'; import React from 'react';
import { requireNativeComponent, ViewStyle } from 'react-native'; import { requireNativeComponent, StyleProp, ViewStyle } from 'react-native';
// @ts-ignore // @ts-ignore
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
type TransparentVideoProps = { type TransparentVideoProps = {
style: ViewStyle; style: StyleProp<ViewStyle>;
source?: any; source?: any;
loop?: boolean; loop?: boolean;
}; };