![](/img/trans.png)
[英]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 ...
[英]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 ...
[英]Anybody knows how to add a camera widget on a Gifted chat component?
有沒有人有將相機小部件添加到 ReactNative 組件中的經驗? ...
[英]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 ( ...
[英]react-native-gifted-chat last bubble coveredby composer
當我嘗試通過填充來提升作曲家時,最后一個聊天氣泡被它覆蓋,那么我應該怎么做才能在最后一個氣泡和作曲家之間留出空間? 我試圖尋找答案,但沒有找到與此類問題相關的任何內容 ...
[英]Problem with generating random Id in react-native with Nanoid or UUID
我有一個聊天應用程序,當我第一次創建新聊天時,我需要一個隨機 ID 來識別聊天,然后,當我嘗試發送消息時,我需要相同的 ID。 我在組件聲明之前聲明 nanoId: 一切正常,我正確創建了聊天,我什至可以正確發送消息,因為它與用於創建聊天的 id 保持一致。 當我導航到家並嘗試創建新的第二個聊天時, ...
[英]What does `GiftedChat.append` from react-native-gifted-chat do?
在文檔中它沒有談論方法append 。 它究竟是做什么的? 這是文檔如何建議其用法的示例。setMessages(previousArr => GiftedChat.append(previousArr, message)); ...
[英]react native giftedchat can not edit message text
我想編輯一條消息,但它僅在我更改此消息_id 時更新。 有人可以提供我如何做到這一點,這是我的代碼: const onSend = useCallback((messagesToSend = []) => { if(editMessage != null){ ...
[英]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 gifted chat can not hide Typing Indicator
我想使用 Gifted Chat 中的打字指示器,這是我的代碼來顯示打字 state: 我可以在第一次點擊頭像時顯示打字指示器,但下次點擊打字指示器不會關閉,有人可以指導我了解問題嗎? 謝謝 ...
[英]How to avoid message Container and Input toolbar overlapping in Gifted chat
這是我的聊天屏幕,問題是我的消息容器,它顯示所有消息都與我的 InputToolBar 重疊。 如何避免這種情況並擁有兩個不相互重疊的單獨容器。 ...
[英]Gifted Chat Module for Electron (React Native)
我正在使用 electron 構建一個像 Slack 這樣的聊天應用程序,但 electron 不支持react-native-gifted-chat 。 我的錯誤是: 錯誤在./node_modules/react-native-gifted-chat/lib/GiftedChat.js 在基於 ...
[英]Encountered two children with the same key - React Native Gifted Chat
下面的代碼有點符合我的要求。 當我輸入組件時,我能夠獲得正確的數據,但是一旦我發送一條消息,它就會復制以前的消息。 我對 React Native 很陌生,所以只是學習。 任何幫助或建議將不勝感激! 1.) 在 Firebase 中的 'selectedUser (local) == field ...
[英]I need sticky day for my chat app same like whatsapp message screen in react native
嗨,本機開發人員需要我的聊天應用程序的幫助。 我需要在粘性 position 中渲染一天,就像 whatsapp 消息屏幕一樣。 當用戶在消息屏幕中滾動時,日期將顯示在屏幕頂部...在此處輸入圖片描述請檢查圖像。 當用戶滾動日期和日期顯示在滾動條上時,謝謝。 顯示日期和日期,但我需要當屏幕滾動到頂部 ...
[英]react-native-gifted-chat How to send on pressing return
如何讓移動鍵盤上的返回按鈕發送消息而不是創建新行? 我嘗試在textInputProps中使用onSubmitEditing但無法正常工作。 ...
[英]real time gifted chat without socket.io?
我的 React Native 0.66 應用程序使用 gifted chat 和 socket.io 允許用戶加入一個房間(由 socket.io 創建)並與同一房間內的其他人聊天。 socket.io 用於向房間內的所有人實時廣播消息。 但最近 socket.io 出現了一些連接問題。 是否 ...
[英]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 取回它們。 提前致謝 ...
[英]How to change rounded avatar in React Native Gifted Chat
目前正在研究如何將聊天中的頭像更改為具有邊界半徑的正方形。 有任何想法嗎? 它不在他們的文檔中,或者我只是錯過了它。 ...
[英]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', ...): Method has been deprecated
請幫助我,我不知道這個警告是什么。 我正在嘗試使用 Cloud Firestore 數據庫中的兩個用戶之間的聊天消息呈現聊天室。 當我渲染 ChatRoom 屏幕時會引發此警告。 這對我有用,在我以前的項目中沒有警告 android,而不是在這里我在 iOS 上運行。 React 版本 17.0. ...
[英]How to display pdf (documents) in react-native-gifted-chat
我正在通過與 twilio 消息的天才聊天發送圖像和 pdf。 發送后,我無法在有天賦的聊天 ui 中顯示文檔。 這是有天賦的聊天將接受的消息 object: 我如何在此處附加 pdf(文檔)鏈接, 目前正在附加 pdf url 和圖像鍵,它返回空白,因為它正在識別 url 作為圖像。 我怎樣才能 ...