Comments (3)
@vrinch we don't need more information obviously we will help you. Just kidding, what phones ? What code ? Do you have a snack we can use to reproduce?
from react-native-web-swiper.
You can use props passed into each slide to determine the logic inside it should be run or not here
By default Swiper tries to render all the element, by returning null in some invisible item can improve performance.
type PageProps = {
index?: number;
activeIndex?: number;
} & ChapterPage;
export const Page: React.FC<PageProps> = ({index, activeIndex, ...page}) => {
if (
index &&
activeIndex &&
index !== activeIndex
) {
return null;
}
return (
// rest of the heavy logic of the slide
)
}
from react-native-web-swiper.
The issue seems to be stale. Please re-open if this is still needed, thanks.
from react-native-web-swiper.
Related Issues (20)
- Expo Video Component (expo-av) Doesn't fully render in Swiper
- Swiper slider only show when I set hieght for parent view of this.
- Animations
- Even if image state is removed, it is visible in the swiper.
- swiper arrows web
- in iOS ScrollView inside swiper conflict scroll! HOT 7
- Multiple elements HOT 3
- gesturesEnabled problem disable swiper HOT 1
- [Help needed] Rerender different sets of children HOT 1
- Safari Mobile iOS 12, width and height are always equal to 0 HOT 1
- Bouces disable? HOT 7
- Possible to add slides dynamically? HOT 6
- Not displaying in React Native Web HOT 2
- Allow `React.Component`s to be functional components (TypeScript) HOT 4
- Swiper Doesnt Render Anything HOT 4
- Warning: Failed prop type: DefaultControls: prop type `cellsStyle.top-left`
- Fade transition HOT 2
- Issue and Fix: Components not getting prop updates HOT 1
- swipe is not working in android HOT 1
- Disable spring animation.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-web-swiper.