@poolse/react-native 0.1.1 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +6 -2
- package/dist/index.cjs +2939 -954
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +259 -31
- package/dist/index.d.ts +259 -31
- package/dist/index.js +2917 -957
- package/dist/index.js.map +1 -1
- package/package.json +12 -7
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,41 @@ All notable changes to `@poolse/react-native` are documented here.
|
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
5
5
|
versions follow [semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [0.1.5] — 2026-06-03
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **`<ImageMosaic>`** — WhatsApp-style multi-image grid (n1 / n2 /
|
|
12
|
+
n3 / n4+ with `+N more` overlay) used inside `<MessageBubble>`
|
|
13
|
+
whenever a message has more than one image attachment. Tapping a
|
|
14
|
+
tile opens a full-screen modal viewer with tap-anywhere-to-close.
|
|
15
|
+
Exported standalone so you can use the layout outside the bubble
|
|
16
|
+
if you want.
|
|
17
|
+
- **Haptic feedback on long-press** in `<MessageRow>` —
|
|
18
|
+
`Haptics.impactAsync(ImpactFeedbackStyle.Medium)` fires when the
|
|
19
|
+
action sheet opens. `expo-haptics` is loaded via a cached lazy
|
|
20
|
+
`require()` — falls back to a silent no-op if you haven't
|
|
21
|
+
installed it, so no peer dep is forced on consumers that don't
|
|
22
|
+
want haptics.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- **Cleaner bubble meta row**: relative timestamp formatting
|
|
27
|
+
(`HH:MM`, `Yesterday HH:MM`, `Mon HH:MM`, `MMM D`), tabular-num
|
|
28
|
+
font variant so the time width stays stable, the read tick sits
|
|
29
|
+
flush with the timestamp, and `edited` is its own italic pill
|
|
30
|
+
rather than inline text.
|
|
31
|
+
|
|
32
|
+
### Notes
|
|
33
|
+
|
|
34
|
+
- `expo-image-picker`, `expo-document-picker`, and `expo-haptics`
|
|
35
|
+
remain OPTIONAL peer dependencies. (0.1.4 briefly promoted them
|
|
36
|
+
to required — that caused npm to reorganize the dep tree on
|
|
37
|
+
consumer installs, ended up with two copies of `@poolse/react` in
|
|
38
|
+
Metro's bundle, and broke `PoolseProvider` context resolution.
|
|
39
|
+
0.1.5 reverts that. 0.1.3 and 0.1.4 were both burned slots and
|
|
40
|
+
should not be used.)
|
|
41
|
+
|
|
7
42
|
## [0.1.0] — 2026-06-03
|
|
8
43
|
|
|
9
44
|
First release. Plug-and-play React Native UI for poolse, mirroring
|
package/README.md
CHANGED
|
@@ -15,10 +15,14 @@ Works out of the box with Expo (SDK 50+) and bare React Native
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
npm install @poolse/sdk @poolse/react @poolse/react-native react-native-svg
|
|
18
|
-
|
|
19
|
-
npx expo install expo-image-picker expo-document-picker
|
|
18
|
+
npx expo install expo-image-picker expo-document-picker expo-haptics
|
|
20
19
|
```
|
|
21
20
|
|
|
21
|
+
All four Expo modules are required peer dependencies — `expo-haptics`
|
|
22
|
+
powers long-press feedback in `<MessageRow>`, and the two pickers
|
|
23
|
+
back `<AttachmentPicker>`. The `npx expo install` form picks
|
|
24
|
+
versions compatible with your installed Expo SDK automatically.
|
|
25
|
+
|
|
22
26
|
## Quick start
|
|
23
27
|
|
|
24
28
|
```tsx
|