react-native-ui-lib 8.1.0 → 8.1.1-snapshot.7576
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ui-lib",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1-snapshot.7576",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
@@ -161,5 +161,6 @@
|
|
|
161
161
|
"!lib/scripts",
|
|
162
162
|
"lib/package.json",
|
|
163
163
|
"lib/ReactNativeUILib.podspec"
|
|
164
|
-
]
|
|
164
|
+
],
|
|
165
|
+
"stableVersion": "8.0.0"
|
|
165
166
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
|
|
3
|
+
// Read yarn.lock
|
|
4
|
+
const yarnLock = fs.readFileSync('yarn.lock', 'utf8');
|
|
5
|
+
|
|
6
|
+
// Count matches first
|
|
7
|
+
const regex = /(.*)::__archiveUrl.*"/g;
|
|
8
|
+
const matches = yarnLock.match(regex);
|
|
9
|
+
const count = matches ? matches.length : 0;
|
|
10
|
+
|
|
11
|
+
// Apply regex replacement
|
|
12
|
+
const result = yarnLock.replace(regex, '$1"');
|
|
13
|
+
|
|
14
|
+
// Write back to yarn.lock
|
|
15
|
+
fs.writeFileSync('yarn.lock', result, 'utf8');
|
|
16
|
+
|
|
17
|
+
console.log(`Successfully cleaned yarn.lock - removed ${count} __archiveUrl entries`);
|
|
@@ -117,13 +117,16 @@ const Toast = props => {
|
|
|
117
117
|
setToastHeight(height);
|
|
118
118
|
}
|
|
119
119
|
}, [toastHeight]);
|
|
120
|
+
const actionLabelStyle = useMemo(() => {
|
|
121
|
+
return [action?.labelStyle, Typography.text70BO];
|
|
122
|
+
}, [action?.labelStyle]);
|
|
120
123
|
const renderRightElement = () => {
|
|
121
124
|
// NOTE: order does matter
|
|
122
125
|
if (showLoader) {
|
|
123
126
|
return loaderElement ?? <ActivityIndicator size={'small'} testID={`${testID}-loader`} color={Colors.rgba(Colors.$backgroundNeutralHeavy, 0.6)} style={styles.loader} />;
|
|
124
127
|
}
|
|
125
128
|
if (action) {
|
|
126
|
-
return <Button link style={styles.action} color={Colors.$backgroundNeutralHeavy} activeBackgroundColor={Colors.$backgroundNeutral} {...action} labelStyle={
|
|
129
|
+
return <Button link style={styles.action} color={Colors.$backgroundNeutralHeavy} activeBackgroundColor={Colors.$backgroundNeutral} {...action} labelStyle={actionLabelStyle} accessibilityRole={'button'} testID={`${testID}-action`} />;
|
|
127
130
|
}
|
|
128
131
|
};
|
|
129
132
|
const renderMessage = () => {
|