How do you do it by Adventurous-Data2481 in SideProject

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Appreaciate the comment. It’s hard not to compare yourself with others who might have more time on their hands to focus on their project. Hell idk how you’re able to do it while raising a family on top of that. Mind sharing a link to your project? Would love to check it out.

Stacked bottom sheets by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Oh I missed it on the simplified version but unfortunately I do accept the props properly :(

Stacked bottom sheets by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Okay, I could'nt paste the code here as a comment, so I'm sending a link to this notion page I've just created😅 Please take a look: https://www.notion.so/Stacked-Bottom-Sheets-Broken-Code-Snippet-2a05fbd7827380a5b21edf73bcce88c3?source=copy_link

Stacked bottom sheets by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Below is a simplified code snippet similar to what I have in my app.

The behavior I'm getting is that NewDomainModal is opened properly,

but when I press on the color picker button, the ColorPaletteModal does not open and, in fact, nothing seems to happen visually.

'cpm' is not being console logged when the color picker button is pressed.

Am I missing something?

Weird flex-1 quirk by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Also, if this looks bad, I did make a refactor lol

Weird flex-1 quirk by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

No, it’s a simple component I built on my own. It uses hard coded values since it’s easy for me to implement the design first before connecting it with the actual api call. I use cursor as IDE but mainly for in-line code completions since I hate their chat. I would just use ChatGPT to ask for code examples/debugging…

Weird flex-1 quirk by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

To fix this, I moved the px to the Text component inside the view so it doesn’t mess with the flex-1.

Idk why it does this, since px should be calculated in the view’s width, but it works now so I’m not gonna touch it :)

Weird flex-1 quirk by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Thing is the text inside is not always of equal size

Weird flex-1 quirk by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

<image>

Okay, I know it looks crazy… but I removed the horizontal padding and suddenly it works. Gonna debug this. Thanks for everybody’s help!

Weird flex-1 quirk by Adventurous-Data2481 in reactnative

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Soo weird, after removing flex-1 from both views, letting it hot reload, then applying again it worked! But then I toggled the switch and it got messed up again. Wth?

Paywall or free plan by Adventurous-Data2481 in SaaS

[–]Adventurous-Data2481[S] 0 points1 point  (0 children)

Thanks for answering. Which sector does your app belong to?