From 804cb67c99dcb12b6cb8b56584a307fe8c228c65 Mon Sep 17 00:00:00 2001 From: binjiechen Date: Mon, 1 Apr 2019 22:14:45 +0800 Subject: [PATCH] fix typescript tip error at styles attribute --- index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3fd7685f..f264b103 100644 --- a/index.d.ts +++ b/index.d.ts @@ -4,7 +4,7 @@ // TypeScript Version: 2.2.2 import React, { Component } from 'react' -import { ImageURISource } from 'react-native' +import { ImageURISource, ViewStyle } from 'react-native' interface SvgUriProps { /** @@ -39,11 +39,12 @@ interface SvgUriProps { * Invoked when load completes successfully. */ onLoad?: Function - + /** * Fill the entire svg element with same color */ - fillAll?: boolean + fillAll?: boolean, + style?: ViewStyle; } export default class SvgUri extends Component { }