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

redshop의 이미지 캐러셀

· 8년 전 · 1168

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]
 

 

 

댓글 작성

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

로그인하기

게시글 목록

번호 제목
1392
1391
1390
1389
1388
1387
1386
1385
1384
1383
1382
1381
1380
1379
1378
1377
1376
1375
1374
1373
1372
1371
1370
1369
1368
1367
1366
1365
1364
1363