
語言 🇹🇼 繁體中文
快速開始
文件
Add Comments to Your React Native App
這是 FastComments 的官方 React Native SDK。
適用於 React Native 應用程式的 FastComments SDK
儲存庫
關於 
This library is a complete react-native implementation of FastComments.
It supports live commenting, chat, threads, emoticons, notifications, SSO, skins, and full customization by passing in a stylesheet object. All assets can also be customized, and it supports toggling different assets based on dark mode.
The benefit of this library is that it is more flexible, and does not require a webview, like the fastcomments-react-native wrapper.
It all runs on the FastComments backend, so you only have to incorporate the UI:
<FastCommentsLiveCommenting config={config} styles={styles} callbacks={callbacks} assets={assets}/>
See example/src for more examples.
Add live chat to your existing React Native application, or even build a social network!
截圖 
佈景主題: Erebus
佈景主題: Default
原生 WYSIWYG 編輯器,支援圖片!
富文本編輯器
此函式庫使用 10tap 編輯器來提供富文本編輯功能,帶來強大的 WYSIWYG 編輯體驗。
設定選項
此函式庫旨在像網頁實作一樣,支援 fastcomments-typescript 中定義的所有設定選項。
FastComments 概念
開始時需要注意的主要概念是 tenantId 和 urlId。tenantId 是你在 FastComments.com 的帳戶識別碼。urlId 則是評論串要綁定的位置。這可以是頁面 URL、產品 id、文章 id,等等。
使用者通知
FastComments 支援 多種情境 的通知。通知可配置,使用者可以在全域或特定通知/評論層級選擇退出,並且支援頁面層級的訂閱,讓使用者可以訂閱特定頁面或文章的討論串。
例如,可以使用 Secure SSO 來驗證使用者,然後定期輪詢未讀通知並推送給使用者。
請參閱 範例 AppNotificationSecureSSO 以了解如何取得並處理未讀的使用者通知。
Gif Browser
預設情況下,未啟用任何圖片或 GIF 選取。請參閱 example/src/AppCommentingImageSelection.tsx 了解如何支援圖片和 gif 上傳。此函式庫提供一個會匿名化搜尋和圖像的 Gif Browser,你只需使用它即可。
效能
如果你發現任何效能問題,請開一張工單並附上可重現的範例及所使用的裝置。效能是所有 FastComments 函式庫的首要考量。
需要幫助?
如果您在使用 React Native SDK 時遇到任何問題或有任何疑問,請:
貢獻
歡迎任何貢獻!請造訪 GitHub 儲存庫 以查看貢獻指南。