본문 바로가기
리액트네이티브

[react-native]아코디언 메뉴 만들기

by 알찬 퍼블리셔 2020. 4. 22.
728x90
반응형

npm i accordion-collapse-react-native 

 

import { TouchableOpacity, Text, View, ScrollView, Image } from 'react-native';

 

 

<Collapse>
  <CollapseHeader>
     <View style={{}}>
          <Text>아코디언 리스트에 보일 제목</Text>
      </View>
   </CollapseHeader>
  <CollapseBody>
    <View style={{ }}>
       <Text>펼쳤을때 보일 내용 </Text>
    </View>
  </CollapseBody>
</Collapse>
<Collapse>
  <CollapseHeader>
     <View style={{}}>
          <Text>아코디언 리스트에 보일 제목</Text>
      </View>
   </CollapseHeader>
  <CollapseBody>
    <View style={{ }}>
       <Text>펼쳤을때 보일 내용 </Text>
    </View>
  </CollapseBody>
</Collapse>
<Collapse>
  <CollapseHeader>
     <View style={{}}>
          <Text>아코디언 리스트에 보일 제목</Text>
      </View>
   </CollapseHeader>
  <CollapseBody>
    <View style={{ }}>
       <Text>펼쳤을때 보일 내용 </Text>
    </View>
  </CollapseBody>
</Collapse>

 

 

 

 

https://www.npmjs.com/package/accordion-collapse-react-native

 

accordion-collapse-react-native

![](https://github.com/marouanekadiri/Accordion-Collapse-react-native/workflows/Test/badge.svg) ![](https://github.com/marouanekadiri/Accordion-Collapse-react-native/workflows/Publish/badge.svg) [![npm version](https://badge.fury.io/js/accordion-collapse-

www.npmjs.com

https://reactnativeexample.com/react-native-accordion-collapse-component/

 

React native Accordion/Collapse component

is a react native javascript component that allow you to show an accordion or a collapse.

reactnativeexample.com

 

728x90
반응형

댓글