FastComments.com

FastComments React Native Library


这是 FastComments 的官方 React Native 库。

用于 React Native 的 FastComments 评论小部件

仓库

在 GitHub 上查看


安装 Internal Link

npm install react-native-webview@13.6.4 --save
npm install fastcomments-react-native --save

注意:截至 2024 年 7 月,react-native-webview 似乎存在一个错误,因此最好将其固定为 13.6.4 - 不要使用 ^ 来获取最新的补丁版本。

考虑原生 SDK Internal Link

此库在 VanillaJS 库外层使用了一个 webview。

FastComments 现在在 fastcomments-react-native-sdk 中支持我们客户端的完全原生实现。 如果您想要完全的原生实现,建议查看该项目。

用法 - SSO(单点登录) Internal Link

FastComments 使用 HMAC 来实现安全的 SSO。 要使用,请让你的后端创建 SSO 对象 (sso 配置属性) 并将其传递给评论小部件。 你可以在这里找到各种后端的示例: https://github.com/FastComments/fastcomments-code-examples/tree/master/sso

对等依赖 Internal Link


fastcomments-react-native 依赖 react-native-webview。因此,你应当遵循 react-native-webview 的安装步骤。

账户区域(注意:欧盟客户)

如果你的账户位于欧盟,请在小部件配置中将 region = 'eu' 设置。

否则,你无需定义 region

需要帮助?

如果在使用 React Native 库时遇到任何问题或有疑问,请:

贡献

欢迎贡献!有关贡献指南,请访问 GitHub 仓库