@momo-kits/native-kits 0.89.30-beta.20 → 0.89.30-beta.22

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.
@@ -236,6 +236,7 @@ fun Button(
236
236
  isFull: Boolean = true,
237
237
  modifier: Modifier = Modifier,
238
238
  ) {
239
+ val testId = "btn_${type.toString().lowercase()}_$title"
239
240
  val customModifier = if (isFull) {
240
241
  modifier
241
242
  .fillMaxWidth()
@@ -259,7 +260,7 @@ fun Button(
259
260
  minWidth = size.value.width
260
261
  ).height(size.value.height)
261
262
  .semantics {
262
- contentDescription = "btn_$title"; testTag = "btn_$title"
263
+ contentDescription = testId; testTag = testId
263
264
  },
264
265
  horizontalArrangement = Arrangement.Center,
265
266
  verticalAlignment = Alignment.CenterVertically,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.30-beta.20",
3
+ "version": "0.89.30-beta.22",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},