@plexui/react-native 0.6.0 → 0.6.1

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.
@@ -413,7 +413,10 @@ const styles = StyleSheet.create({
413
413
  slot: { flexDirection: "row", alignItems: "center" },
414
414
  trailing: { justifyContent: "flex-end" },
415
415
  label: { justifyContent: "center" },
416
- content: { justifyContent: "center" },
416
+ // No wider than the middle it stands in: on the web a one-line text's min-content (nowrap) would otherwise push it
417
+ // under the bar's buttons; held to the middle, a child that shrinks cuts its line, as UIKit fits a title view
418
+ // between the bar items (Yoga's AT_MOST measuring does the same on a device)
419
+ content: { justifyContent: "center", maxWidth: "100%" },
417
420
  // A filling content stretches its control across (a search field, a block button), as a column would
418
421
  fill: { flex: 1, flexDirection: "column", alignItems: "stretch" },
419
422
  // A row's control fills it when it is a block control, and stands at the leading edge otherwise
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/react-native",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Plex UI components for React Native and Expo: iOS 26 and Material 3, on the shared @plexui/styles tokens",
5
5
  "license": "MIT",
6
6
  "homepage": "https://plexui.com",
@@ -738,7 +738,10 @@ const styles = StyleSheet.create({
738
738
  slot: { flexDirection: "row", alignItems: "center" },
739
739
  trailing: { justifyContent: "flex-end" },
740
740
  label: { justifyContent: "center" },
741
- content: { justifyContent: "center" },
741
+ // No wider than the middle it stands in: on the web a one-line text's min-content (nowrap) would otherwise push it
742
+ // under the bar's buttons; held to the middle, a child that shrinks cuts its line, as UIKit fits a title view
743
+ // between the bar items (Yoga's AT_MOST measuring does the same on a device)
744
+ content: { justifyContent: "center", maxWidth: "100%" },
742
745
  // A filling content stretches its control across (a search field, a block button), as a column would
743
746
  fill: { flex: 1, flexDirection: "column", alignItems: "stretch" },
744
747
  // A row's control fills it when it is a block control, and stands at the leading edge otherwise