Comments (2)
I face exactly the same problem but I solved it like this
import * as React from 'react';
import { Text, View, StyleSheet, Image } from 'react-native';
import Marquee from 'react-native-marquee';
export default function App() {
return (
<View style={styles.container}>
<Marquee
duration={3000}
marqueeOnStart
loop
marqueeDelay={1000}
marqueeResetDelay={1000}
useNativeDriver = {true}
>
<View style={{flexDirection: 'row'}}>
<Image source = {{uri: "https://st3.depositphotos.com/5040187/18607/v/600/depositphotos_186071614-stock-illustration-blue-swoosh-global-digital-business.jpg"}} style={{height: 200, width: 200}} />
<Image source = {{uri: "https://cdn.vox-cdn.com/thumbor/QZSegJgac0piIS8Rt8yzD9TI4oc=/267x177:1277x706/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/15980359/MV5BMTg3NzQ0MjgzMV5BMl5BanBnXkFtZTgwNDY0Nzg2NzM_._V1_SY1000_CR0_0_1553_1000_AL_.jpg"}} style={{height: 200, width: 200}} />
<Image source = {{uri: "https://res.cloudinary.com/teepublic/image/private/s--oahwkUbQ--/t_Resized%20Artwork/c_fit,g_north_west,h_954,w_954/co_000000,e_outline:48/co_000000,e_outline:inner_fill:48/co_ffffff,e_outline:48/co_ffffff,e_outline:inner_fill:48/co_bbbbbb,e_outline:3:1000/c_mpad,g_center,h_1260,w_1260/b_rgb:eeeeee/c_limit,f_auto,h_630,q_90,w_630/v1554184746/production/designs/4555538_0.jpg"}} style={{height: 200, width: 200}} />
</View>
</Marquee>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
backgroundColor: '#ecf0f1',
padding: 8,
},
});
from react-native-marquee.
I've not thought of it when I started working on this. Please let me know if there is a use case, then I'll consider supporting it.
from react-native-marquee.
Related Issues (10)
- infinity loop HOT 5
- Add ellipsis support on Android HOT 1
- Animations does not work when app layout direction is RTL HOT 2
- Does this really work for android? HOT 3
- vertical not supported? HOT 3
- marquee for image not supported
- marqueeResetDelay not working HOT 3
- Show static text instead of animated text when contentFits is true HOT 1
- Easing InOut HOT 2
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-marquee.