npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fastcomments-react-native-sdk

v1.0.5

Published

React Native FastComments Components

Downloads

95

Readme

fastcomments-react-native-sdk

Installation

npm install fastcomments-react-native-sdk --save

About

This library is a complete webview-free 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. It only has three direct dependencies (react, hookstate, and a library to render HTML).

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!

Screenshots

Skin: Erebus

Skin: Erebus

Skin: Default

Skin: Default

Native WYSIWYG Editor with Image Support!

Native WYSIWYG Editor with Image Support

No WebViews!

This library incorporates its own WYSIWYG editor written in native React, so that we do not depend on loading a WebView to type text.

Configuration Options

This library aims to support all configuration options defined in fastcomments-typescript, just like the web implementation.

FastComments Concepts

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.

User Notifications

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 Browser

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.

Performance

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.

Contributing

Contributions are welcome. Please open a GitHub issue first and tag @winrid to confirm it is not something we are already working on (or not able to accept). Keep in mind that most features should be opt-in by default to maximize flexibility and performance.

Feature/Development Checklist - v1

  • [x] WYSIWYG editing existing text
  • [x] WYSIWYG functional for basic use cases.
  • [x] Secure & Simple SSO Examples
  • [x] WYSIWYG editor (supports images etc)
  • [x] Reply Area Toolbar (similar to vanillajs widget)
  • [x] Child Comments & Replies
  • [x] Read Native SDK able to login when posting comment
  • [x] Can Log Out
  • [x] Can post a comment + show errors.
  • [x] Flagging
  • [x] Blocking
  • [x] Pinning Comments
  • [x] Render new live comments
  • [x] Switch to useHookState
  • [x] Deleting comments
  • [x] Editing comments
  • [x] All comment menu styling.
  • [x] Fetching and Rendering Comments
  • [x] WYSIWYG Performance Update #1 - Recalculate content on demand vs on change event.
  • [x] BUG: New comments should go to top of or bottom of list based on configuration.
  • [x] Emoticon Support
  • [x] Voting
  • [x] Ability to hide replies
  • [x] Show/Hide Comments Toggle
  • [x] Pagination (Buttons)
  • [x] Pagination (Infinite Scroll)
  • [x] Custom Styles (as typed stylesheet)
  • [x] Callbacks (similar to vanillajs widget)
  • [x] Dark mode skin
  • [x] Social-media like skin
  • [x] Improved Comment Styling
  • [x] Notifications List (shows when clicking bell). Supports subscriptions.
  • [x] Chat Reactions
  • [x] Support for showLiveRightAway = false
  • [x] User activity indicators
  • [x] Native WYSIWYG Multiline Support
  • [x] Media Selection & Uploads
  • [x] Gif Browser - With default trending + search capability. Images and searching anonymized by proxy.
  • [x] Release to NPM
  • [x] Switch Pressable usage to Button or TouchableOpacity where possible
  • [x] WYSIWYG Editor Optimizations (ideally 60fps while typing)
  • [x] Notification Service (get user's unread notifications in the background to push to them, etc)
  • [x] Better WYSIWYG bar icons (web ones don't look good in native)
  • [x] Complete all TODOs
  • [x] Profile & ensure 40 FPS minimum during writing comments, submitting, voting, and opening reply menu.
  • [x] Add @username to text box when replying and using useSingleReplyField = true