Aminmiri82 / PersonalGPTAssistant

a chatbot that uses open AI technology to help you with your legal questions
2 stars 1 forks source link

renderRightActions not woking when certain styles are applied to the <Screen> #12

Closed Aminmiri82 closed 5 months ago

Aminmiri82 commented 8 months ago

Describe the bug when ever you make a and give it something to render when swiped to the right, the thing you asked it to render will not show up To Reproduce in the app.js write something like this :

if the styles.container has stuff in it like this:
container: {
flexDirection: "row",
flexWrap: "wrap",
justifyContent: 'space-between', 
alignItems: 'flex-start',
maxWidth: '100%', 

}, then the ListItemDeleteAction will not be rendered Expected behavior the ListItemDeleteAction component should be rendered when swiped to the right

Screenshots Capture d’écran 2024-02-16 à 20 07 52 Capture d’écran 2024-02-16 à 20 07 39

Desktop (please complete the following information): MacOS 14 VSCode Version: 1.86.2

Smartphone (please complete the following information): iPhone 15 pro max iOS 17.2

Additional context it only happens with these specific settings : container: { flexDirection: "row", flexWrap: "wrap", justifyContent: 'space-between', alignItems: 'flex-start', maxWidth: '100%', },

for example it doesn't happen if you only have : container: { flex:1 },

Aminmiri82 commented 8 months ago

imma be honest, seeing how our app is supposed to function this bug will probably NEVER be seen in prod, but I wanted to report it anyway. the specific styling that makes this bug possible is only used in the assistants menu. which will never have a swipeable component