react-native-sortable-grid icon indicating copy to clipboard operation
react-native-sortable-grid copied to clipboard

inactive props doesn't work for me

Open mayursolanki26 opened this issue 5 years ago • 3 comments

my react-native code is <SortableGrid key={"sortableGrid"} style={{ margin: 10,flex:1}} itemsPerRow={3} dragActivationTreshold={100} ref={'SortableGrid'} dragStartAnimation={this.getDragStartAnimation()} onDragRelease={(item, index) => this.onDragRelease(item, index)} onDragStart={() => this.startCustomAnimation()} > { this.state.media.map((item, index) => { return ( item !== "empty" ? <View style={{ height: 106, width: 106, alignSelf: "center" }} key={unique-key-${index}}> <Image source={{ uri: item.image_id === "" ? item.thumbnail : item.image }} style={{ width: 100, height: 100, borderRadius: 20, alignSelf: "center", borderColor: '#ababab', borderWidth: 2 }} /> <TouchableOpacity style={[styles.Indicator, { borderWidth: 1, borderColor: "#ababab", borderRadius: 10, backgroundColor: "#FFF" }]} onPress={() => this.removeMedia({ item, index })}> <Image source={require("../../assets/images/error.png")} style={{ height: 20, width: 20, alignSelf: "center", }} resizeMode="contain" /> </TouchableOpacity> </View> : <TouchableOpacity onPress={() => this.getImageOrVideo(index)} key={key-${index}} inactive = {true}> <View style={[styles.cellEmptyImg, { alignSelf: "center" },]}> <Image source={require("../../assets/images/button.png")} style={{ height: 50, width: 50, }} resizeMode="cover" /> <Text style={styles.addText}>add photo</Text> </View> </TouchableOpacity> ) }) } </SortableGrid>

mayursolanki26 avatar Feb 03 '20 08:02 mayursolanki26

how to solve it? please give some suggestion

mayursolanki26 avatar Feb 03 '20 08:02 mayursolanki26

same issue here

appsgenie avatar Apr 29 '20 02:04 appsgenie

actually looks like the main index.js file here in github has the inactive property, while missing in my project's node_modules... so something tied to package manager?

appsgenie avatar Apr 29 '20 03:04 appsgenie