Copilot & HelpHub in React Native
React Native CommandBar was built as a wrapper around CommandBarIOS and CommandBarAndroid repos and uses both as dependencies.
Minimum iOS Version: 13.0 Minimum Android Version: 28
yarn add @commandbar/react-nativenpm install @commandbar/react-native- Clone the repo: git clone https://github.com/tryfoobar/react-native-commandbar && cd react-native-commandbar
- Install dependencies: yarn
- Run the example: yarn example iosoryarn example android
import { Button, View } from 'react-native';
import { CommandBar } from '@commandbar/react-native';
const MyComponent = () => {
  return (
    <View>
      <Button
        title="Open"
        onPress={() => CommandBar.openHelpHub({ orgId: 'your_org_id' })}
      />
    </View>
  );
};import { Button, View } from 'react-native';
import { CommandBar } from '@commandbar/react-native';
const MyComponent = () => {
  return (
    <View>
      <Button
        title="Open Support Article"
        onPress={() => CommandBar.openHelpHub({ orgId: 'your_org_id' }, 123456)}
      />
    </View>
  );
};import { Button, View } from 'react-native';
const MyComponent = () => {
  return (
    <View style={{ flex: 1 }}>
      <HelpHubView orgId="your_org_id" />
    </View>
  );
};See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
