[react-native-indicators] Add missing style prop (#38506)

This commit is contained in:
st-sloth
2019-09-23 10:27:50 -07:00
committed by Ben Lichtman
parent b9cbb67070
commit 0aca90f5b4
2 changed files with 13 additions and 1 deletions
+12 -1
View File
@@ -5,7 +5,12 @@
// TypeScript Version: 2.8
import { Component } from 'react';
import { Animated, EasingFunction } from 'react-native';
import {
Animated,
EasingFunction,
StyleProp,
ViewStyle,
} from 'react-native';
export interface BaseIndicatorProps {
/**
* Animation easing function
@@ -30,6 +35,12 @@ export interface BaseIndicatorProps {
* @default true
*/
interaction?: boolean;
/**
* Style is proxied to the underlying View
* @default undefined
*/
style?: StyleProp<ViewStyle>;
}
export interface UIActivityIndicatorProps extends BaseIndicatorProps {
@@ -8,6 +8,7 @@ class Example extends React.Component {
return (
<React.Fragment>
<DotIndicator color='white' />
<DotIndicator style={{ flex: 0 }} />
</React.Fragment>
);
}