x-app-sdk 1.0.2 → 1.0.3
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/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,15 +48,15 @@ closeApp();
|
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
### 2. UI Components
|
|
51
|
-
#### `
|
|
51
|
+
#### `XButton`
|
|
52
52
|
Component nút bấm đơn giản.
|
|
53
53
|
```js
|
|
54
|
-
import {
|
|
54
|
+
import { XButton } from 'x-app-sdk';
|
|
55
55
|
|
|
56
56
|
const App = () => (
|
|
57
|
-
<
|
|
57
|
+
<XButton onPress={() => alert('Button clicked!')}>
|
|
58
58
|
Nhấn vào đây
|
|
59
|
-
</
|
|
59
|
+
</XButton>
|
|
60
60
|
);
|
|
61
61
|
```
|
|
62
62
|
|