@poolse/react-native 2.21.0 → 2.22.0
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 +20 -0
- package/dist/index.cjs +7 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +8 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,26 @@ 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
|
+
## [2.22.0] — 2026-10-14
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `CallScreen onSpeakerChange` — fires with `(speakerOn,
|
|
12
|
+
externalDevice)` whenever the audio route changes. Hosts use it to
|
|
13
|
+
drive the proximity sensor: the screen should only go dark near an
|
|
14
|
+
ear when the sound is actually at the ear.
|
|
15
|
+
|
|
16
|
+
## [2.21.1] — 2026-10-14
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **The composer sat underneath Android's navigation bar.** The
|
|
21
|
+
internal safe-inset hook lazy-required react-native-safe-area-context
|
|
22
|
+
inside a try/catch; in the ESM bundle `require` doesn't exist, so
|
|
23
|
+
every app silently got hardcoded fallback insets — 34 on iOS (right
|
|
24
|
+
by coincidence) and 0 on Android. The hook now imports the library
|
|
25
|
+
statically, which CallScreen already did anyway.
|
|
26
|
+
|
|
7
27
|
## [2.21.0] — 2026-10-13
|
|
8
28
|
|
|
9
29
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -8,9 +8,9 @@ var Svg2 = require('react-native-svg');
|
|
|
8
8
|
var ImagePicker = require('expo-image-picker');
|
|
9
9
|
var DocumentPicker = require('expo-document-picker');
|
|
10
10
|
var expoImageManipulator = require('expo-image-manipulator');
|
|
11
|
+
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
11
12
|
var Clipboard = require('expo-clipboard');
|
|
12
13
|
var Markdown = require('react-native-markdown-display');
|
|
13
|
-
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
14
14
|
|
|
15
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
|
|
@@ -38,12 +38,7 @@ var DocumentPicker__namespace = /*#__PURE__*/_interopNamespace(DocumentPicker);
|
|
|
38
38
|
var Clipboard__namespace = /*#__PURE__*/_interopNamespace(Clipboard);
|
|
39
39
|
var Markdown__default = /*#__PURE__*/_interopDefault(Markdown);
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
43
|
-
}) : x)(function(x) {
|
|
44
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
45
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
46
|
-
});
|
|
41
|
+
// src/PoolseInbox.tsx
|
|
47
42
|
|
|
48
43
|
// src/theme/default.ts
|
|
49
44
|
var lightColors = {
|
|
@@ -1671,22 +1666,7 @@ var styles8 = reactNative.StyleSheet.create({
|
|
|
1671
1666
|
fontWeight: "700"
|
|
1672
1667
|
}
|
|
1673
1668
|
});
|
|
1674
|
-
var
|
|
1675
|
-
top: reactNative.Platform.OS === "ios" ? 50 : 24,
|
|
1676
|
-
bottom: reactNative.Platform.OS === "ios" ? 34 : 0,
|
|
1677
|
-
left: 0,
|
|
1678
|
-
right: 0
|
|
1679
|
-
};
|
|
1680
|
-
var realHook = null;
|
|
1681
|
-
try {
|
|
1682
|
-
const mod = __require("react-native-safe-area-context");
|
|
1683
|
-
if (mod && typeof mod.useSafeAreaInsets === "function") {
|
|
1684
|
-
realHook = mod.useSafeAreaInsets;
|
|
1685
|
-
}
|
|
1686
|
-
} catch {
|
|
1687
|
-
}
|
|
1688
|
-
var useFallback = () => FALLBACK;
|
|
1689
|
-
var useSafeInsets = realHook ?? useFallback;
|
|
1669
|
+
var useSafeInsets = reactNativeSafeAreaContext.useSafeAreaInsets;
|
|
1690
1670
|
var MessageComposer = react.forwardRef(
|
|
1691
1671
|
function MessageComposer2({
|
|
1692
1672
|
onSend,
|
|
@@ -6056,6 +6036,7 @@ function CallScreen({
|
|
|
6056
6036
|
onStatusChange,
|
|
6057
6037
|
onTransportChange,
|
|
6058
6038
|
onVideoChange,
|
|
6039
|
+
onSpeakerChange,
|
|
6059
6040
|
inCallManager,
|
|
6060
6041
|
nativeIncomingUi
|
|
6061
6042
|
}) {
|
|
@@ -6107,6 +6088,9 @@ function CallScreen({
|
|
|
6107
6088
|
livekitReactNative
|
|
6108
6089
|
});
|
|
6109
6090
|
const [routesOpen, setRoutesOpen] = react.useState(false);
|
|
6091
|
+
react.useEffect(() => {
|
|
6092
|
+
onSpeakerChange?.(audio.speakerOn, audio.externalDevice);
|
|
6093
|
+
}, [audio.speakerOn, audio.externalDevice, onSpeakerChange]);
|
|
6110
6094
|
const showingIncoming = calls.phase === "ringing-in" && !nativeIncomingUi;
|
|
6111
6095
|
react.useEffect(() => {
|
|
6112
6096
|
const ringing = calls.phase === "ringing-out";
|