meliorence / react-native-image-gallery

Pure JavaScript image gallery component for iOS and Android with high-performance and native feeling in mind
713 stars 299 forks source link

No Close button #108

Open kingkarki opened 6 years ago

kingkarki commented 6 years ago

Hi Used DemoGallery from example. Everything works but it doesn't show close button as shown in screenshot. archriss_react-native-image-gallery__pure_javascript_image_gallery_component_for_ios_and_android_with_high-performance_and_native_feeling_in_mind

nerjok commented 5 years ago

@kingkarki what was your solution?

NazimMertBilgi commented 3 years ago

@kingkarki @nerjok

get galleryCount() { const { index, images } = this.state; return ( <View style={{ top: 20, height: 65, backgroundColor: Colors.PURPLE, width: '100%', position: 'absolute' }}> <TouchableOpacity onPress={() => this.props.navigation.goBack()} style={{ position: 'absolute', left: 20, paddingLeft: "10%" }}> <Text style={{ color: 'white', fontSize: 18 }}>Kapat</Text> </TouchableOpacity> <Text style={{ position: 'absolute', right: 0, color: 'white', fontSize: 18, paddingRight: "10%" }}>{index + 1} / {images.length}</Text> </View> ); }