테스트 사이트 - 개발 중인 베타 버전입니다

redshop의 이미지 캐러셀

· 8년 전 · 1167

https://github.com/kfbow/simple-carousel-react-native  나온지 몇일 안된 것을 사용해 봤습니다. 

 

코드가 그냥 이해하기 편한것으로..

 

가운데 dot도 센터에 맞지는 않지만..  

 

 

[code]

import Carousel from 'simple-carousel-react-native'; 

 

        <Carousel

          color='red'

          height = {150}

          width = {400}

        >

          <View>

            <ResponsiveImage source={require('./images/1.jpg')} initWidth="400" initHeight="150"/>

          </View>

          <View>

            <ResponsiveImage source={require('./images/2.jpg')} initWidth="400" initHeight="150"/>

          </View>

          <View><Text>Page 3</Text></View>

        </Carousel>

[/code]
 

 

 

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
1327
1326
1325
1324
1323
1321
1320
1319
1316
1315
1314
1313
1312
1311
1310
1309
1308
1305
1304
1303
1302
1301
1300
1295
1294
1293
1287
1285
1283
1279