{"repo":"SHISME/react-native-draggable-grid","free":true,"listed":false,"github":"https://github.com/SHISME/react-native-draggable-grid","clone":"git clone https://github.com/SHISME/react-native-draggable-grid.git","description":"A draggable and sortable grid of react-native","language":"TypeScript","stars":360,"topics":["react-native","react-native-component","react-native-draggable"],"license":null,"category":"mobile-apps","readme_excerpt":"react-native-draggable-grid -blue.svg) 中文文档 Demo Getting Started Installation Usage Props parameter type required description :-------- :---- :------- :---------- numColumns number yes how many items should be render on one row data array yes data's item must have unique key，item's render will depend on the key renderItem (item, order:number) = ReactElement yes Takes an item from data and renders it into the list itemHeight number no if not set this, it will the same as itemWidth dragStartAnimation object no custom drag start animation style object no grid styles Event Props parameter type required description :-------- :---- :------- :------------------------------------------------------------------------------ onItemPress (item) = void no Function will execute when item on press onDragStart (startDragItem) = void no Function will execute when item start drag onDragRelease (data) = void no Function will execute when item release, and will return the new ordered data onResetSort (data) = void no Function will execute when dragged item change sort onDragging (gestureState: PanResponderGestureState) = void no Function will execute when dragging item onDragItemActive (item) = void no Function will execute when any item active Item Props parameter type required description :-------- :---- :------- :---------- disabledDrag boolean no It will disable drag for the item disabledReSorted boolean no It will disable resort the item if you set disabledResorted be true, it will look like","default_branch":null,"files":null,"tree":[],"storefront":"/r/SHISME","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SHISME/react-native-draggable-grid/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}