kasunk99-livestream-core 0.3.21 → 0.3.22

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.
@@ -1 +1 @@
1
- {"version":3,"file":"LiveStreamViewerItem.d.ts","sourceRoot":"","sources":["../../src/components/LiveStreamViewerItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAgB1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM/C,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAyCF,eAAO,MAAM,oBAAoB,uDAsZ/B,CAAC"}
1
+ {"version":3,"file":"LiveStreamViewerItem.d.ts","sourceRoot":"","sources":["../../src/components/LiveStreamViewerItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAgB1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAM/C,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAyCF,eAAO,MAAM,oBAAoB,uDAwZ/B,CAAC"}
@@ -197,10 +197,12 @@ export const LiveStreamViewerItem = memo(function LiveStreamViewerItem({ stream,
197
197
  const text = chatInput.trim();
198
198
  if (!text || !socket || !joined)
199
199
  return;
200
- // Emit first — state teardown must not precede the network call.
201
200
  socket.emit('chat-message', { text });
202
201
  setChatInput('');
203
- Keyboard.dismiss(); // triggers keyboardDidHide setIsTyping(false)
202
+ // Do NOT call Keyboard.dismiss() here on Android the keyboard dismissal event fires
203
+ // before onPress, which unmounts the send button and swallows the tap. Keep the keyboard
204
+ // open so the user can send multiple messages (TikTok style). keyboardDidHide handles
205
+ // cleanup when the user manually dismisses.
204
206
  };
205
207
  const hostLabel = stream.hostDisplayName || stream.title || 'Live';
206
208
  const avatarLetter = hostLabel[0]?.toUpperCase() ?? 'L';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kasunk99-livestream-core",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "Reusable livestream viewer/host module for React Native (Expo) — mediasoup + Socket.IO",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",