Skip to content

Commit

Permalink
feat(library setup): updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ssathy2 committed Jul 3, 2024
1 parent 1cd5c6b commit eb92bf2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ npm install connectsdk-reactnative


```js
import { ConnectsdkReactnativeView } from "connectsdk-reactnative";
import { ConnectButton } from 'connectsdk-reactnative';

// ...

<ConnectsdkReactnativeView color="tomato" />
<ConnectButton
connectionId={'<The Id of the connection that should be displayed. Example: >'}
suggestedUserEmail={'<An email address corresponding to the user that is logged in.>'}
redirectURL={'<The redirect URL to use when invoking your iOS app after a service is connected. Example: connectsdktestapp://connect_callback'}
skipConnectionConfiguration={false} // Whether or not connection configuration should be skipped.
onActivationSuccess={onActivationSuccess} // Callback for Connection activation success
onActivationFailure={onActivationFailure} // Callback for Connection activation failure
onDeactivationSuccess={onDeactivationSuccess} // Callback for Connection deactivation success
onDeactivationFailure={onDeactivationFailure} // Callback for Connection deactivation failure
/>
```


## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
Expand Down

0 comments on commit eb92bf2

Please sign in to comment.