Skip to content

Commit 553cff3

Browse files
committed
chore: update readme with usage and min sdk versions
1 parent 59666b5 commit 553cff3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ React Native CommandBar was built as a wrapper around [CommandBarIOS](https://gi
1212

1313
## Installation
1414

15+
**Minimum iOS Version:** 13.0
16+
**Minimum Android Version:** 28
17+
1518
```sh
1619
yarn add @commandbar/react-native
1720
```
@@ -46,6 +49,24 @@ const MyComponent = () => {
4649
};
4750
```
4851

52+
### Open HelpHub Bottom Sheet to a specific Article
53+
54+
```jsx
55+
import { Button, View } from 'react-native';
56+
import { CommandBar } from '@commandbar/react-native';
57+
58+
const MyComponent = () => {
59+
return (
60+
<View>
61+
<Button
62+
title="Open Support Article"
63+
onPress={() => CommandBar.openHelpHub({ orgId: 'your_org_id' }, 123456)}
64+
/>
65+
</View>
66+
);
67+
};
68+
```
69+
4970
### Render a HelpHub View
5071

5172
```jsx

0 commit comments

Comments
 (0)