From b22998c3980ef7dd41823da1d9f0d992af408131 Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Tue, 17 Oct 2023 11:22:12 -0700 Subject: [PATCH] feat: update `style` prop to use `StyleProp` instead of `ViewStyle` (#6) Co-authored-by: Devin Lumley <2636402+devinwl@users.noreply.github.com> --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index a0df4db..be346ed 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,10 +1,10 @@ import React from 'react'; -import { requireNativeComponent, ViewStyle } from 'react-native'; +import { requireNativeComponent, StyleProp, ViewStyle } from 'react-native'; // @ts-ignore import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; type TransparentVideoProps = { - style: ViewStyle; + style: StyleProp; source?: any; loop?: boolean; };