@@ -2,6 +2,10 @@ declare module "react-native-responsive-grid" {
2
2
import { Component } from "react" ;
3
3
import { ViewProperties } from "react-native" ;
4
4
5
+ export interface GridProps {
6
+
7
+ }
8
+
5
9
export interface ColumnProps {
6
10
size ?: number ,
7
11
sizePoints ?: number ,
@@ -31,8 +35,7 @@ declare module "react-native-responsive-grid" {
31
35
hAlign ?: 'stretch' | 'center' | 'right' | 'left' ,
32
36
alignSelf ?: 'auto' | 'top' | 'bottom' | 'middle' | 'stretch' | 'baseline' ,
33
37
fullWidth ?: boolean ,
34
- aspectRatio ?: object ,
35
- layoutEvent ?: string ,
38
+ aspectRatio ?: object
36
39
}
37
40
38
41
export interface RowProps {
@@ -43,22 +46,29 @@ declare module "react-native-responsive-grid" {
43
46
alignSelf ?: 'auto' | 'left' | 'right' | 'center' | 'stretch' ,
44
47
fullHeight ?: boolean ,
45
48
alignLines ?: string ,
46
- layoutEvent ?: string
49
+ size ?: number ,
50
+ sizePoints ?: number
51
+ smSizePoints ?: number ,
52
+ mdSizePoints ?: number ,
53
+ lgSizePoints ?: number ,
54
+ xlSizePoints ?: number
47
55
}
48
56
57
+ export type AspectRatio = '16:9' | '16:10' | '3:2' | '4:3' | '1:1' | '4:3' | '3:2' | '16:10' | '16:9'
58
+
49
59
export class Row extends Component < ViewProperties & RowProps , any > { }
50
60
export class Column extends Component < ViewProperties & ColumnProps , any > { }
61
+ export class Grid extends Component < ViewProperties & GridProps , any > { }
51
62
52
63
export interface ScreenParams {
53
64
mediaSize : 'sm' | 'md' | 'lg' | 'xl' ,
54
65
width : number ,
55
66
height : number ,
56
67
aspectRatio ?: {
57
- currentNearestRatio : string ,
68
+ currentNearestRatio : AspectRatio ,
58
69
currentOrientation : 'square' | 'landscape' | 'portrait'
59
70
}
60
71
}
61
72
62
73
export function ScreenInfo ( onlySize ?: boolean ) : ScreenParams ;
63
- }
64
-
74
+ }
0 commit comments