cost 250 ms
使用 React Native Firebase 消息應用程序在 OnSnapshot 上收聽消息時出現問題

[英]Problem with listening to messages OnSnapshot with a React Native Firebase Messaging App

我正在嘗試使用 firebase SDK 創建 React Native 消息傳遞應用程序。在聊天屏幕中,我正在嘗試收聽我的 firestore 數據庫中的更新消息。 我正在關注這個 github 存儲庫https://github.com/ReactNativeSchool/react-nativ ...

TypeError: undefined is not an object (評估'_$$_REQUIRE(_dependencyMap[32], "react-native-safe-area-context").SafeAreaView')

[英]TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[32], "react-native-safe-area-context").SafeAreaView')

我正在嘗試使用 react-native 實現聊天應用程序,下面是我的依賴項 這是我的聊天畫面 但是在運行我的應用程序后,出現以下錯誤錯誤日志 1 錯誤日志 2 錯誤日志 3 錯誤日志 4 來自日志 1 的錯誤 TypeError: undefined is not an object ( ...

使用 Nanoid 或 UUID 在 react-native 中生成隨機 Id 的問題

[英]Problem with generating random Id in react-native with Nanoid or UUID

我有一個聊天應用程序,當我第一次創建新聊天時,我需要一個隨機 ID 來識別聊天,然后,當我嘗試發送消息時,我需要相同的 ID。 我在組件聲明之前聲明 nanoId: 一切正常,我正確創建了聊天,我什至可以正確發送消息,因為它與用於創建聊天的 id 保持一致。 當我導航到家並嘗試創建新的第二個聊天時, ...

反應原生giftedchat無法編輯消息文本

[英]react native giftedchat can not edit message text

我想編輯一條消息,但它僅在我更改此消息_id 時更新。 有人可以提供我如何做到這一點,這是我的代碼: const onSend = useCallback((messagesToSend = []) => { if(editMessage != null){ ...

Invariant Violation:試圖注冊兩個同名的視圖RNCSafeAreaProvider,js引擎:hermes

[英]Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider, js engine: hermes

嘗試從“react-native-gifted-chat”導入和使用 GiftedChat 組件時出現此錯誤: Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider, js e ...

react native 優聊無法隱藏打字指示器

[英]react native gifted chat can not hide Typing Indicator

我想使用 Gifted Chat 中的打字指示器,這是我的代碼來顯示打字 state: 我可以在第一次點擊頭像時顯示打字指示器,但下次點擊打字指示器不會關閉,有人可以指導我了解問題嗎? 謝謝 ...

遇到兩個擁有相同鑰匙的孩子 - React Native 天才聊天

[英]Encountered two children with the same key - React Native Gifted Chat

下面的代碼有點符合我的要求。 當我輸入組件時,我能夠獲得正確的數據,但是一旦我發送一條消息,它就會復制以前的消息。 我對 React Native 很陌生,所以只是學習。 任何幫助或建議將不勝感激! 1.) 在 Firebase 中的 'selectedUser (local) == field ...

我的聊天應用程序需要粘性日,就像反應本機中的 whatsapp 消息屏幕一樣

[英]I need sticky day for my chat app same like whatsapp message screen in react native

嗨,本機開發人員需要我的聊天應用程序的幫助。 我需要在粘性 position 中渲染一天,就像 whatsapp 消息屏幕一樣。 當用戶在消息屏幕中滾動時,日期將顯示在屏幕頂部...在此處輸入圖片描述請檢查圖像。 當用戶滾動日期和日期顯示在滾動條上時,謝謝。 顯示日期和日期,但我需要當屏幕滾動到頂部 ...

沒有socket.io的實時優聊?

[英]real time gifted chat without socket.io?

我的 React Native 0.66 應用程序使用 gifted chat 和 socket.io 允許用戶加入一個房間(由 socket.io 創建)並與同一房間內的其他人聊天。 socket.io 用於向房間內的所有人實時廣播消息。 但最近 socket.io 出現了一些連接問題。 是否 ...

想用優聊發圖片,存到firebase取回來,在聊天里展示

[英]Want to send images using gifted chat with messages, and store them to firebase and fetch them back , and show in the chat

我想使用有天賦的聊天發送帶有消息的圖像,這是我的代碼: 從這里發送消息並將它們存儲到 firebase 並顯示從 firebase 取回它們。 提前致謝 ...

React Native 隨機崩潰並出現錯誤“嘗試刪除比添加更多的 RCTKeyboardObserver 偵聽器”

[英]React native randomly crashes with error 'Attempted to remove more RCTKeyboardObserver listeners than added'

當我打開和關閉 ChatRoom 屏幕時,我在 iOS 模擬器上的 React Native 項目隨機崩潰並出現此錯誤,我猜這是 React Native 天才聊天庫的問題我不確定,這是我在該屏幕中使用的唯一外部庫。 我試過鍵盤刪除偵聽器解決方案Keyboard.addListener("keyb ...

EventEmitter.removeListener('keyboardDidHide', ...): 方法已被棄用

[英]EventEmitter.removeListener('keyboardDidHide', ...): Method has been deprecated

請幫助我,我不知道這個警告是什么。 我正在嘗試使用 Cloud Firestore 數據庫中的兩個用戶之間的聊天消息呈現聊天室。 當我渲染 ChatRoom 屏幕時會引發此警告。 這對我有用,在我以前的項目中沒有警告 android,而不是在這里我在 iOS 上運行。 React 版本 17.0. ...

如何在 react-native-gifted-chat 中顯示 pdf(文檔)

[英]How to display pdf (documents) in react-native-gifted-chat

我正在通過與 twilio 消息的天才聊天發送圖像和 pdf。 發送后,我無法在有天賦的聊天 ui 中顯示文檔。 這是有天賦的聊天將接受的消息 object: 我如何在此處附加 pdf(文檔)鏈接, 目前正在附加 pdf url 和圖像鍵,它返回空白,因為它正在識別 url 作為圖像。 我怎樣才能 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM