We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b5c9cb commit 3ed1e01Copy full SHA for 3ed1e01
README.md
@@ -19,10 +19,13 @@ import { FastCommentsCommentWidget } from 'fastcomments-react-native';
19
20
const myTenantId = 'demo'; // Your tenant id. Can be fetched from https://fastcomments.com/auth/my-account/api-secret
21
const myAppPageId = 'native-test'; // the ID or URL of the comment thread in your app.
22
- const config = {
+ const [config, setConfig] = useState({
23
tenantId: myTenantId,
24
urlId: myAppPageId
25
- };
+ });
26
+
27
+ // by calling setConfig(), we can do things like change the current page, or the currently logged in user
28
+ // See example/src/App.tsx
29
30
return (
31
<FastCommentsCommentWidget config={config}/>
0 commit comments