mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[react-native-indicators] Add missing style prop (#38506)
This commit is contained in:
parent
b9cbb67070
commit
0aca90f5b4
13
types/react-native-indicators/index.d.ts
vendored
13
types/react-native-indicators/index.d.ts
vendored
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user