
שפה 🇮🇱 עברית
תיעוד
התחלה
הוספת תגובות לאפליקציית React Native שלך
זה ה-SDK הרשמי של React Native עבור FastComments.
גש ל-FastComments API ישירות מתוך אפליקציית React Native שלך.
מאגר
הדגמה חיה 
נסה את כל הווידג'טים בשידור חי בhttps://fastcomments.com/commenting-system-for-react-native.
אודות 
ספרייה זו היא מימוש מלא של react-native עבור FastComments.
היא תומכת בהערות בזמן אמת, צ'אט, שרשורים (threads), אימוג'ים, התראות, SSO, סקינים, והתאמה אישית מלאה על ידי העברת אובייקט גיליון סגנונות. כל הנכסים ניתנים גם הם להתאמה אישית, והיא תומכת במעבר בין נכסים שונים בהתאם למצב כהה.
היתרון של ספרייה זו הוא שהיא גמישה יותר מאשר ה-wrapper fastcomments-react-native. ההערות מוצגות עם רכיבים נייטיב במקום בתוך webview.
הכול רץ על ה-backend של FastComments, כך שעליך לשלב רק את ה-UI:
<FastCommentsLiveCommenting config={config} styles={styles} callbacks={callbacks} assets={assets}/>
עיין ב-example/src לדוגמאות נוספות.
הוסף צ'אט חי לאפליקציית React Native קיימת שלך, או אפילו בנה רשת חברתית!
צילומי מסך 
Live threaded commenting with avatars, nested replies, votes, and the built-in rich-text composer, plus a dark theme and a live-chat preset (shown here rendered via react-native-web):
הערות בזמן אמת![]() |
תמה כהה![]() |
צ'אט בזמן אמת![]() |
עורך טקסט עשיר
This library uses react-native-enriched for rich text editing, which provides a powerful WYSIWYG editing experience. The same editor powers iOS, Android, and the web (via react-native-web), so the composer behaves consistently across every platform with a single implementation.
react-native-enriched requires the React Native New Architecture (Fabric) on native (the default since RN 0.76, opt-in on RN 0.72-0.75), and a bundler that resolves package exports conditions. This SDK is developed and tested against RN 0.81 / React 19. The same editor also runs on web through react-native-web; the enriched editor's web build is still marked experimental upstream.
ווידג'טים
FastCommentsLiveCommenting- הערות משורשרות עם הצבעות, תגובות, דפדוף, אזכורים, התראות, ועדכונים בזמן אמת.FastCommentsLiveChat- הגדרת צ'אט על אותו מנוע: הודעות כרונולוגיות עם חדשות בתחתית, הקומפוזר מתחת לרשימה, פס כותרת חי (נקודת חיבור + מספר משתמשים), היסטוריה אינסופית נטענת בגלילה למעלה, גלילה אוטומטית להודעות חדשות, ללא הצבעות או שרשור תגובות. כל הגדרה ניתנת לשינוי דרךconfig.FastCommentsFeed- פיד חברתי עם קומפוזר פוסט, מדיה, תגובות, מעקב, ובאנרים חיים של פוסטים חדשים.
<FastCommentsLiveChat config=\{{ tenantId: 'demo', urlId: 'my-room' }}/>
תמות
The default look is generated from a set of semantic design tokens (FastCommentsTheme): colors, spacing, radius, font sizes, font weights, and avatar sizes. Pass partial token overrides (typed FastCommentsThemeOverrides) through the theme prop on any widget and the entire style tree restyles consistently:
<FastCommentsLiveCommenting config={config} theme=\{{ colors: { primary: '#FF5500' } }}/>
Dark mode is one token set away:
import { getDarkTheme } from 'fastcomments-react-native-sdk';
<FastCommentsLiveCommenting config={config} theme={getDarkTheme()}/>
The styles prop still accepts a raw IFastCommentsStyles tree for surgical control. When theme and styles are both provided, the explicit styles win over the themed tree; when only styles is provided, it replaces the defaults entirely (the original behavior, so existing integrations and skins are unaffected). setupDarkModeSkin is deprecated in favor of the theme prop.
אפשרויות תצורה
This library aims to support all configuration options defined in fastcomments-typescript, just like the web implementation.
On top of those, React Native adds a few SDK-specific options via FastCommentsRNConfig:
hideTopBar- הסתרת פס המשתמש המחובר / פעמון ההתראות המופיע מעל הקומפוזר.usePressToEdit- לחיצה ממושכת על תגובה לפתיחת התפריט שלה.disableDownVoting- הסתרת כפתורי הצבעה שלילית.renderCommentInline- הצגת מידע המגיב בתוך אותו בלוק HTML של תוכן התגובה.renderLikesToRight- העברת אזור ההצבעה/לייק לימין התגובה במקום מתחתיה.renderDateBelowComment- הצגת התאריך מתחת לתגובה.showLiveStatus- הצגת פס כותרת בסגנון צ'אט עם "Live" + מספר משתמשים מעל לתגובות.useInlineSubmitButton- הצגת כפתור השליחה כאייקון בתוך הקומפוזר.countAboveToggle- יחד עםuseShowCommentsToggle, כמה תגובות מוצגות מעל למתג "הצגת תגובות".preserveFeedScrollPosition-FastCommentsFeedזוכר את מיקום הגלילה שלו בין ניתוק/הצמדה מחדש (ברירת מחדל true).
מושגי FastComments
The main concepts to be aware of to get started are tenantId and urlId. tenantId is your FastComments.com account identifier. urlId is where comment threads will be tied to. This could be a page URL, or a product id, an article id, etc.
לוקליזציה
All user-facing text in these widgets (button labels, placeholders, empty states, relative dates like "5 minutes ago", error messages, etc.) is server-driven. The components do not hard-code English strings; they render the translations FastComments serves for the requested locale.
To request a locale, set locale in your config:
const config = {
tenantId: 'your-tenant-id',
urlId: 'some-page',
locale: 'de_de', // de_de, fr_fr, ja_jp, es_es, etc.
};
When no locale is set, FastComments serves the tenant's default language.
Editing the text: translations are managed in your FastComments dashboard, not in this SDK. To change wording, override the default copy, or add a language, edit the translations for your account in the dashboard - the change is picked up by the widgets automatically with no app release required. The SDK ships no English fallbacks, so any key you blank out in the dashboard renders empty; keep the keys populated for every locale you support.
התראות משתמש
FastComments supports notifications for many scenarios. Notifications are configurable, can be opted-out globally or at a notification/comment level, and supports page-level subscriptions so that users can subscribe to threads of a specific page or article.
For example, it is possible to use Secure SSO to authenticate the user and then periodically poll for unread notifications and push them to the user.
See the example AppNotificationSecureSSO for how to get and translate unread user notifications.
דפדפן GIF
By default, no image or gif selection is enabled. See example/src/AppCommentingImageSelection.tsx for how to support image and gif uploads. There is a Gif Browser that anonymizes searches and images provided in this library, you simply have to use it.
ביצועים
Please open a ticket with an example to reproduce, including device used, if you identify any performance problems. Performance is a first-class citizen of all FastComments libraries.
זקוקים לעזרה?
אם אתם נתקלים בבעיות או יש לכם שאלות לגבי ה-React Native SDK, אנא:
תרומות
תרומות מתקבלות בברכה! בקרו במאגר ה-GitHub repository לקבלת הנחיות לתרומה.


