![](/img/trans.png)
[英]Is it possible to change the width of just a top "header" thing using popup-menu in react native?
使用 React Native react-native-popup-menu 是否可以設置菜單樣式,所以它看起來像下面這樣? 我現在有這個,不知道如何制作上面的: 當前用於樣式的代碼: 是否有可能以某種方式改變這個頂部 header "kategoria" 的寬度? ...
[英]Is it possible to change the width of just a top "header" thing using popup-menu in react native?
使用 React Native react-native-popup-menu 是否可以設置菜單樣式,所以它看起來像下面這樣? 我現在有這個,不知道如何制作上面的: 當前用於樣式的代碼: 是否有可能以某種方式改變這個頂部 header "kategoria" 的寬度? ...
[英]Is it possible to open a menu based on the component state? Without the MenuTrigger in react-native-popup-menu
如何在沒有<MenuTrigger text='Select action' /> 文檔說,菜單可以通過單擊或調用上下文方法打開。 我想知道如何在這個功能組件中使用上下文方法。 ...
[英]What is an ideal way to implement multi-level popups with react-native-popup-menu?
使用 react-native-popup-menu 實現多級彈出窗口的理想方法是什么? 我希望能夠單擊屏幕上的圖標並顯示第一級彈出菜單。 第一級彈出菜單上的每個項目都可能在第一個菜單的頂部打開第二級彈出菜單(具有類似的<MenuTrigger>行為)。 我最初的想法是以某種方式從& ...
[英]How to create a close animation in a custom renderer component using react-native-popup-menu?
我正在使用react-native-popup-menu並創建了自己的renderer組件。 它是一個 function 組件,簡而言之,它看起來像這樣:const ContextMenuRenderer = ({ children, layouts, ...otherProps }) => ...
[英]React Native Pass Selected asyncStorage value to Popup onPress
我正在嘗試為我選擇的值制作一個彈出屏幕。 這是在本地存儲中。 我正在嘗試將值 firstname、lastname、phone 傳遞給 Popup。 像這樣 我希望值“h”顯示在“呼叫”和“文本”旁邊。 這是我最喜歡的聯系頁面。 這是我的彈出頁面。 請高手幫幫我。 ...
[英]How to add offset to the popup menu?
我想抵消我的按鈕上彈出的菜單。 我希望彈出窗口不會阻礙單擊的按鈕。 我閱讀了文檔並嘗試添加樣式,但找不到添加樣式的位置和方式。 該文檔提到該庫的某些組件接受customStyles道具,但每當我嘗試給它一些東西時它都會出錯,例如<MenuOptions customStyles={{top: ...
[英]Popup menu does not appear on Android using “react-native-popup-menu”
我正在使用react-native-popup-menu制作一個移動應用程序。 (React Native)彈出單元在iOS上運行良好。 但是當我在Android模擬器上對其進行測試時,就不會在Android上買到它。 我看過一篇文章,提出了涉及MenuContext>元素的修復 ...
[英]Get error when installing react-native-popup-menu on react-native 0.59.3
我正在使用react-native版本0.59.3,當我嘗試安裝react-native-popup-menu版本0.59.3時出現此錯誤: ...
[英]Open Menu on click of Icon in React Native
當單擊React Native中的 Icon時,我無法確定如何顯示菜單項 Expo Link 碼 請讓我知道如何將菜單與圖標集成.. 基本上所有項目都顯示在FlatList中 ,其中每個項目都有自己的菜單項 ...
[英]How to implement this lib in a Custom Flatlist
我有一個像波紋管這樣的平面清單。 代碼是這樣的。 在這種情況下如何實現彈出菜單? ...
[英]React native popup menu can not navigate using navigation props
我有Message反應導航堆棧屏幕。 我想使用react-native-popup-menu導航到另一個屏幕。 這似乎導航道具無法傳遞到MessagePopupMenu組件,當我點擊AddFriend和AddGroup菜單按鈕。 Message組件已經作為正確的導航屏幕進行 ...
[英]React-Native-Popup-Menu with FloatingActionButton Component cannot trigger with MenuTrigger
我想一起使用react-native-popup-menu和react-native-floating-action-button組件。 我試過了: 此代碼不會觸發 MenuTrigger,因為觸發了 FloatingActionButton 的 onPress。 我也試過這種東西: 這個觸發器與 ...
[英]How to use check boxes in FlatList view of popup menu option, react-native?
我正在使用反應本機彈出菜單 在這里,我想在平面列表視圖中使用復選框,在單擊菜單項時,我將捕獲其復選框值。 ...
[英]Aligning react-native-popup-menu MenuOptions right
我一生都無法弄清楚如何使下拉菜單正確對齊。 我嘗試使用 flex-end 和絕對定位與 right: 0 等一起玩。 我希望在主觸發器黃色框的右側、下方和右側列出菜單選項。 或者至少在粉紅色框的右側對接。 我可以使用marginTop輕松更改高度位置。 ); ...
[英]How to unit test behavior in react-native-popup-menu
假設我有以下代碼: 現在如何單元測試(使用酶)的是否onSelect第一MenuOption調用funcOne和onSelect第二的MenuOption調用funcTwo ? 該文檔中的測試示例並不是很有幫助,因為沒有與檢查行為相關的示例。 ...
[英]popup-menu requires RN 0.55+ error in react native
我正在使用庫“react-native-popup-menu。 版本:0.14.0(最新) 當我嘗試運行然后錯誤顯示: 此版本的彈出菜單需要RN 0.55+,但問題是我安裝了最新的庫然后為什么會出錯? 注意:在Package.Json文件中添加了一個庫。 ...
[英]How to navigate from one menu option to other screen
我正在使用'react-native-popup-menu' 當我單擊任何菜單選項時,要導航至另一個屏幕,我該如何實現? ...
[英]How to calculate position of context menu?
上下文菜單遠低於應有的菜單。 我嘗試使用 但這僅起了很小的作用。 這是屏幕截圖。 任何幫助表示贊賞。 編輯:我現在使用了自定義菜單,如https://github.com/instea/react-native-popup-menu/blob/master/doc/ex ...
[英]How to add React native Popup Menu in Dynamic FlatList
我將嘗試在平板列表中添加react native彈出菜單。 但是問題是菜單只顯示了兩個平面列表ite <MenuContext> <Menu style={{ height: 200,width:54, alignItems: 'center', margin ...
[英]Unable to run - shows console error “This version of popup-menu requires RN 0.55+. Check our compatibility table.”
我正在使用“ react-native-popup-menu”庫。 但是現在我完全陷入了上述錯誤。 我的研究沒有發現任何幫助。 預先感謝您的幫助。 ...