Skip to content

Releases: FastComments/fastcomments-react-native

v4.5.0

10 Jun 16:32

Choose a tag to compare

What's Changed

  • Added a nestedScrollEnabled prop, defaulting to false (#85). Previously the widget hardcoded nestedScrollEnabled={true} on the underlying WebView, which on Android claimed vertical drag gestures and prevented a parent ScrollView/FlatList from scrolling, even when the auto-height widget had only a pixel or two of internal overflow.

Behavior change

If you embed a fixed-height widget that needs to scroll internally (for example live chat inside a scrollable screen), pass nestedScrollEnabled={true} to keep the old behavior. Note that Android WebView never hands the gesture back to the parent at the scroll boundary; that is an upstream platform limitation.

Full Changelog: v4.2.3...v4.5.0

v4.2.3

09 Jun 19:23

Choose a tag to compare

Patch release.

Removes the keyboard-avoidance behavior introduced in 4.2.2. That approach (shrinking the WebView to lift a focused field above the keyboard) is fundamentally incompatible with embedding the auto-height widget inside a host ScrollView/feed - it could render the widget blank, capture the feed's scroll, and mis-position fields. The widget returns to its stable pre-4.2.x behavior in any layout. The disableKeyboardAvoidance prop (added in 4.2.2) is removed.

Keeps a height-tracking improvement: the widget updates to the reported content height whenever it changes, instead of a throttle that could stick at the initial placeholder height.

Note: a comment field low on the screen may again sit behind the on-screen keyboard. Robust keyboard avoidance is not achievable for an auto-height WebView embedded in a feed; handle it at the host level (e.g. full-screen hosting) if needed.

v4.2.2

09 Jun 03:16

Choose a tag to compare

Patch release.

  • Keyboard avoidance: when a comment field inside the widget is focused, the WebView now shrinks to the space above the on-screen keyboard and scrolls the focused field into view, so it's no longer hidden behind the keyboard. On by default; pass disableKeyboardAvoidance to opt out.

Example app (not shipped in the package): fixed the blank widget in the showcase (ScrollView host), a list key warning, the oversized tab bar, and dark-mode demo.

v4.2.0

18 Apr 05:36

Choose a tag to compare

  • Add renderLoading and renderError props for customizing loading/error UI
  • Add onOpenProfile callback support
  • Stabilize instanceId across re-renders (bug fix — no more flapping when parent re-renders)
  • Export FastCommentsWidgetParameters type
  • Remove internal lodash dependency
  • Tighten internal types (no more any casts in event handler)

v4.1.0

16 Jun 19:49

Choose a tag to compare

What's Changed

  • Clickable links + Upgrade Gradle/JDK by @winrid in #81

Full Changelog: v4.0.1...v4.1.0

Release 3.0.0

22 Jul 19:50

Choose a tag to compare

  • 3.0.0 (12813ff)
  • update instructions (2983b16)
  • lock (a977717)
  • fixing example not compiling (4cf1382)
  • slight upgrade for gradle (82bdc51)
  • remove deprecated repo (2b5e882)
  • gradlew should be executable (48ed117)
  • Move react-native-webview to dev deps, make flexible peer dependency (400910e)
  • Merge pull request #15 from FastComments/dependabot/npm_and_yarn/react-native-community/eslint-config-3.0.3 (39b1b41)
  • Merge pull request #6 from FastComments/dependabot/npm_and_yarn/example/simple-plist-1.3.1 (fdc12f5)