Releases: FastComments/fastcomments-react-native
v4.5.0
What's Changed
- Added a
nestedScrollEnabledprop, defaulting to false (#85). Previously the widget hardcodednestedScrollEnabled={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
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
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
disableKeyboardAvoidanceto 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
- Add
renderLoadingandrenderErrorprops for customizing loading/error UI - Add
onOpenProfilecallback support - Stabilize
instanceIdacross re-renders (bug fix — no more flapping when parent re-renders) - Export
FastCommentsWidgetParameterstype - Remove internal lodash dependency
- Tighten internal types (no more
anycasts in event handler)
v4.1.0
Release 3.0.0
- 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)