1
1
// Generated by typings
2
- // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/5a3d3f6fbdca6de33271dae7e4b4a56b0fe9ffe0 /react-native/react-native.d.ts
2
+ // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/da7c99c73bcdeb64c1238d537740825efdc24b89 /react-native/react-native.d.ts
3
3
import React = __React ;
4
4
5
5
//react-native "extends" react
@@ -1722,6 +1722,41 @@ declare namespace __React {
1722
1722
}
1723
1723
1724
1724
1725
+ /**
1726
+ * @see https://facebook.github.io/react-native/docs/activityindicator.html#props
1727
+ */
1728
+ export interface ActivityIndicatorProperties extends React . Props < ActivityIndicatorStatic > {
1729
+
1730
+ /**
1731
+ * Whether to show the indicator (true, the default) or hide it (false).
1732
+ */
1733
+ animating ?: boolean
1734
+
1735
+ /**
1736
+ * The foreground color of the spinner (default is gray).
1737
+ */
1738
+ color ?: string
1739
+
1740
+ /**
1741
+ * Whether the indicator should hide when not animating (true by default).
1742
+ */
1743
+ hidesWhenStopped ?: boolean
1744
+
1745
+ /**
1746
+ * Size of the indicator.
1747
+ * Small has a height of 20, large has a height of 36.
1748
+ *
1749
+ * enum('small', 'large')
1750
+ */
1751
+ size ?: 'small' | 'large'
1752
+
1753
+ style ?: ViewStyle
1754
+ }
1755
+
1756
+ export interface ActivityIndicatorStatic extends React . ComponentClass < ActivityIndicatorProperties > {
1757
+ }
1758
+
1759
+
1725
1760
/**
1726
1761
* @see https://facebook.github.io/react-native/docs/activityindicatorios.html#props
1727
1762
*/
@@ -1753,11 +1788,14 @@ declare namespace __React {
1753
1788
*
1754
1789
* enum('small', 'large')
1755
1790
*/
1756
- size ?: string
1791
+ size ?: 'small' | 'large'
1757
1792
1758
1793
style ?: ViewStyle
1759
1794
}
1760
1795
1796
+ /**
1797
+ * @Deprecated since version 0.28.0
1798
+ */
1761
1799
export interface ActivityIndicatorIOSStatic extends React . ComponentClass < ActivityIndicatorIOSProperties > {
1762
1800
}
1763
1801
@@ -3107,11 +3145,16 @@ declare namespace __React {
3107
3145
3108
3146
// see /NavigatorSceneConfigs.js
3109
3147
export interface SceneConfigs {
3110
- FloatFromBottom : SceneConfig ;
3111
- FloatFromRight : SceneConfig ;
3112
3148
PushFromRight : SceneConfig ;
3149
+ FloatFromRight : SceneConfig ;
3113
3150
FloatFromLeft : SceneConfig ;
3151
+ FloatFromBottom : SceneConfig ;
3152
+ FloatFromBottomAndroid : SceneConfig ;
3153
+ FadeAndroid : SceneConfig ;
3114
3154
HorizontalSwipeJump : SceneConfig ;
3155
+ HorizontalSwipeJumpFromRight : SceneConfig ;
3156
+ VerticalUpSwipeJump : SceneConfig ;
3157
+ VerticalDownSwipeJump : SceneConfig ;
3115
3158
}
3116
3159
3117
3160
export interface Route {
@@ -3141,10 +3184,14 @@ declare namespace __React {
3141
3184
export interface NavigatorProperties extends React . Props < Navigator > {
3142
3185
/**
3143
3186
* Optional function that allows configuration about scene animations and gestures.
3144
- * Will be invoked with the route and should return a scene configuration object
3187
+ * Will be invoked with `route` and `routeStack` parameters, where `route`
3188
+ * corresponds to the current scene being rendered by the `Navigator` and
3189
+ * `routeStack` is the set of currently mounted routes that the navigator
3190
+ * could transition to. The function should return a scene configuration object.
3145
3191
* @param route
3192
+ * @param routeStack
3146
3193
*/
3147
- configureScene ?: ( route : Route ) => SceneConfig
3194
+ configureScene ?: ( route : Route , routeStack : Route [ ] ) => SceneConfig
3148
3195
/**
3149
3196
* Specify a route to start on.
3150
3197
* A route is an object that the navigator will use to identify each scene to render.
@@ -3509,6 +3556,11 @@ declare namespace __React {
3509
3556
* A Boolean value that indicates whether the tab bar is translucent
3510
3557
*/
3511
3558
translucent ?: boolean
3559
+
3560
+ /**
3561
+ * Color of text on unselected tabs
3562
+ */
3563
+ unselectedTintColor ?: string
3512
3564
}
3513
3565
3514
3566
export interface TabBarIOSStatic extends React . ComponentClass < TabBarIOSProperties > {
@@ -5557,6 +5609,8 @@ declare namespace __React {
5557
5609
5558
5610
// export var AppRegistry: AppRegistryStatic;
5559
5611
5612
+ export var ActivityIndicator : ActivityIndicatorStatic
5613
+ export type ActivityIndicator = ActivityIndicatorStatic
5560
5614
5561
5615
export var ActivityIndicatorIOS : ActivityIndicatorIOSStatic
5562
5616
export type ActivityIndicatorIOS = ActivityIndicatorIOSStatic
@@ -5808,4 +5862,4 @@ declare module "react-native" {
5808
5862
5809
5863
declare var global : __React . GlobalStatic
5810
5864
5811
- declare function require ( name : string ) : any
5865
+ declare function require ( name : string ) : any
0 commit comments