How can I fix scrolling and layout issues when using react navigation? - reactjs

I am currently having an issue where using a StackNavigator (created using createStackNavigator) is messing up the layout of my component.
I have attached images to explain the problem! You can see, on the first run of the app, when I just directly render the view, the component renders fine. Then, when I change it to render my navigator (whose component is the same StartPartyPageView), the layout gets messed up.
Also, when rendering within a navigator, I am unable to scroll my scroll view.
Does anyone know what could be going on here?
This is where it is working:
This is where it is not working:

Related

Tab navigation with React but not React-Native?

I'm into PWA development, and I'd like to use React components to build my UI, but not React-native components (otherwise why write PWAs...).
So I am looking for an equivalent to the top-tab-navigator component found here:
https://reactnavigation.org/docs/material-top-tab-navigator/
but without any React-Native dependency!
Changing pages by swiping would be great, even without a visual effect.
So far, I found React components to put tabs on displays inside pages, but nothing with navigator characteristics (full screen views, event on page change, ...).
Any help will be very appreciated.
Thank you!
So far, I found React components to put tabs on displays inside pages, but nothing with navigator characteristics (full screen views, event on page change, ...).

Mantine ScrollArea With React Infinite Scroll

I am currently building an app which uses Mantine components. I have a list which I am paginating, and rendering using React-Infinite-Scroll-Component. I want to change the style of the scrollbar of the InfiniteScroll component to look like the Mantine ScrollArea scroll bar, is there a way to use the ScrollArea component to wrap it? If not, how would I go about styling the scroll bar?
Have a look at this CodeSandboxLink to see exactly what the difference is.

Need help triggering scrolling when interacting with absolutely positioned element on top of scrollview

Image showing problem triggering scrollview when touching absolute component outside
Please see above photo which describes the issue.
I'm newish to React Native layout and specifically ScrollView.
How can I make it possible for user to touch and drag anywhere on screen to initiate scroll INCLUDING touching on top of this absolute component which is outside of the scrollview?

Custom animation react navigation bottom tab navigator

I created a shrink animation with Stack Navigator, on snack, https://snack.expo.io/hvv8URsmp , but I haven't been able to replicate it with createBottomTabNavigator.
I saw some github threads that say it's not supported in the same way Stack Navigator is, with this link showing how to do it manually with Animated https://github.com/brentvatne/animated-bottom-navigation-example/blob/master/createAnimatedBottomTabNavigator.js.
While it seems to work, I would love it if I could separate the animation code out into my navigator file, as shown in the snack, rather than be hardcoded into my screen component like in the second link.
Is there a way to migrate the code that I already have working for the stack navigator into an existing bottomTabNavigator?

Class Component should not re-render when updating state

I am working on a Portfolio site that has some "Teaser Projects" appearing (in an animated way) on the home page. Each image has a project title that should appear as custom cursor when hovering the appropriate project div / image.
What should be pretty straightforward turned out to be quite complicated due to (logical) re-rendering of the component.
I set up a CodeSandbox here: https://codesandbox.io/s/nostalgic-sun-b3i2d
How can I allow the Class Component to update it's state and show the appropriate cursor div (that should follow the mouse later) without re-rendering it (and making the animation play again)?

Resources