nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 181 forks source link

Sticky Component is not working #244

Closed bipin-goodworklabs closed 2 years ago

bipin-goodworklabs commented 2 years ago

Hii, I have a ad page which has sticky form. in react native base it is working fine but when i am integrating the nextjs (solito) then it is not working. i searched alot but nothing found.

image

following is my code for ad sticky form which was working.

`

    </ScrollView>`

    the above code was working fine just with react native base but with nextjs solito not working

Please help me thanks

nandorojo commented 2 years ago

Did you read the docs for scroll views? https://solito.dev/recipes/scroll-view

You likely need to wrap your ScrollView like this:


<View style={{ flex: 1 }}>
  <ScrollView />
</View>
bipin-goodworklabs commented 2 years ago

No that is not working. @nandorojo

bipin-goodworklabs commented 2 years ago

I moved the sticky form out of scrollview and added it in view and that worked <View position="sticky" top={'2'} right="30" width={'100%'} zIndex={9999999999999}