mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 23:40:18 +00:00
[react-native-indicators] Add missing style prop (#38506)
This commit is contained in:
+12
-1
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user