@xsolla/xui-primitives-native 0.96.0 → 0.97.0

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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @xsolla/xui-primitives-native
2
+
3
+ React Native implementations of XUI primitive components.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ yarn add @xsolla/xui-primitives-native
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { Box, Text, Input } from '@xsolla/xui-primitives-native';
15
+
16
+ const MyComponent = () => (
17
+ <Box flexDirection="row" gap={8} padding={16}>
18
+ <Text fontSize={16} color="#fff">Hello</Text>
19
+ <Input value={value} onChangeText={setValue} placeholder="Type here" />
20
+ </Box>
21
+ );
22
+ ```
23
+
24
+ ## Exports
25
+
26
+ - `Box` — Layout container (`View`); supports full `BoxProps` including press handlers and ARIA attributes
27
+ - `Text` — Text element; supports colour, fontSize, fontWeight, alignment
28
+ - `Spinner` — Animated loading indicator
29
+ - `Icon` — SVG icon wrapper accepting child SVG content
30
+ - `Divider` — Horizontal or vertical line separator
31
+ - `Input` — Native text input with cross-platform prop interface (`onChangeText`, `secureTextEntry`, `inputMode`)
32
+ - `TextArea` — Native multi-line text input with `rows` and `autoSize` support
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-primitives-native",
3
- "version": "0.96.0",
3
+ "version": "0.97.0",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "types": "./index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "react-native": "*"
13
13
  },
14
14
  "dependencies": {
15
- "@xsolla/xui-primitives-core": "0.96.0",
15
+ "@xsolla/xui-primitives-core": "0.97.0",
16
16
  "lucide-react-native": "^0.470.0",
17
17
  "react-native-svg": "^15.10.1"
18
18
  },