-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuniwind+1.3.2.patch
More file actions
58 lines (57 loc) · 2.8 KB
/
uniwind+1.3.2.patch
File metadata and controls
58 lines (57 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff --git a/node_modules/uniwind/dist/common/components/native/Pressable.js b/node_modules/uniwind/dist/common/components/native/Pressable.js
index c7f4363..07803e6 100644
--- a/node_modules/uniwind/dist/common/components/native/Pressable.js
+++ b/node_modules/uniwind/dist/common/components/native/Pressable.js
@@ -22,6 +22,11 @@ const Pressable = exports.Pressable = (0, _utils.copyComponentProperties)(_react
isPressed: true
}).styles, typeof props.style === "function" ? props.style(state) : props.style];
}
+ if (state.focused) {
+ return [_native.UniwindStore.getStyles(props.className, props, {
+ isFocused: true
+ }).styles, typeof props.style === "function" ? props.style(state) : props.style];
+ }
return [style, typeof props.style === "function" ? props.style(state) : props.style];
}
});
diff --git a/node_modules/uniwind/dist/module/components/native/Pressable.js b/node_modules/uniwind/dist/module/components/native/Pressable.js
index 129f1d7..e8b85cb 100644
--- a/node_modules/uniwind/dist/module/components/native/Pressable.js
+++ b/node_modules/uniwind/dist/module/components/native/Pressable.js
@@ -26,6 +26,16 @@ export const Pressable = copyComponentProperties(RNPressable, (props) => {
typeof props.style === "function" ? props.style(state) : props.style
];
}
+ if (state.focused) {
+ return [
+ UniwindStore.getStyles(
+ props.className,
+ props,
+ { isFocused: true }
+ ).styles,
+ typeof props.style === "function" ? props.style(state) : props.style
+ ];
+ }
return [style, typeof props.style === "function" ? props.style(state) : props.style];
}
}
diff --git a/node_modules/uniwind/src/components/native/Pressable.tsx b/node_modules/uniwind/src/components/native/Pressable.tsx
index 3c220a5..a7d9d1d 100644
--- a/node_modules/uniwind/src/components/native/Pressable.tsx
+++ b/node_modules/uniwind/src/components/native/Pressable.tsx
@@ -26,6 +26,16 @@ export const Pressable = copyComponentProperties(RNPressable, (props: PressableP
typeof props.style === 'function' ? props.style(state) : props.style,
]
}
+ if (state.focused) {
+ return [
+ UniwindStore.getStyles(
+ props.className,
+ props,
+ { isFocused: true },
+ ).styles,
+ typeof props.style === 'function' ? props.style(state) : props.style,
+ ]
+ }
return [style, typeof props.style === 'function' ? props.style(state) : props.style]
}}