GithubHelp home page GithubHelp logo

Comments (6)

oxyii avatar oxyii commented on June 8, 2024

@chayancbnits As you know, swiper rewritten recently. And yes, minHeight added into swiper second (controls) layer. Could you clarify what exactly works out not as expected?

from react-native-web-swiper.

oxyii avatar oxyii commented on June 8, 2024

Please let me know if not stale

from react-native-web-swiper.

bikashsahucbnits avatar bikashsahucbnits commented on June 8, 2024

Is there any way to Auto Size the Different slides of the swiper container??
We have two views to show inside the slider which contains dynamic values with different heights.

How to set the Height of the container according to the inner content size?
We have tried with the below solution with "onLayout" prop of view but it does not work with Safari Browser. But it works fine in chrome and firefox.

<View style={{ borderWidth: 1, borderColor: Height > 0 ? "#000" : "#fff", borderRadius: 6, marginBottom: 5, height: Height + 10 }} > <Swiper ref={swiperRef} controlsEnabled={false} from={0}> <TouchableOpacity onLayout={event => { let { x, y, width, height } = event.nativeEvent.layout; setHeight(height); }} > ........................... ............. <Content 2/> </View>

from react-native-web-swiper.

chayancbnits avatar chayancbnits commented on June 8, 2024

Is there any way to Auto Size the Different slides of the swiper container??
We have two views to show inside the slider which contains dynamic values with different heights.

How to set the Height of the container according to the inner content size?
We have tried with the below solution with "onLayout" prop of view but it does not work with Safari Browser. But it works fine in chrome and firefox.

<View style={{ borderWidth: 1, borderColor: Height > 0 ? "#000" : "#fff", borderRadius: 6, marginBottom: 5, height: Height + 10 }} > <Swiper ref={swiperRef} controlsEnabled={false} from={0}> <TouchableOpacity onLayout={event => { let { x, y, width, height } = event.nativeEvent.layout; setHeight(height); }} > ........................... ............. <Content 2/> </View>

+1

from react-native-web-swiper.

oxyii avatar oxyii commented on June 8, 2024

@bikashsahucbnits see README (Dynamic content)

Snack example for you https://snack.expo.io/HyH73pZoS

from react-native-web-swiper.

chayancbnits avatar chayancbnits commented on June 8, 2024

@oxyii I want something like this Custome height each slide(https://snack.expo.io/@chayancbnits/react-native-web-swiper-custome-heigth)

Actually I set minHeight in the main container for the swiper section.

from react-native-web-swiper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.