Closed priyarg closed 1 year ago
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,
},
});
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.
can you please add marquee for image like that of text