react-native-ui-lib 8.1.1-snapshot.7572 → 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.1-snapshot.7572",
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>",
@@ -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={Typography.bodySmallBold} accessibilityRole={'button'} testID={`${testID}-action`} />;
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 = () => {