Skip to content

Commit eb92bf2

Browse files
committed
feat(library setup): updating readme
1 parent 1cd5c6b commit eb92bf2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ npm install connectsdk-reactnative
1212

1313

1414
```js
15-
import { ConnectsdkReactnativeView } from "connectsdk-reactnative";
15+
import { ConnectButton } from 'connectsdk-reactnative';
1616

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

22-
2330
## Contributing
2431

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

0 commit comments

Comments
 (0)