fidme / react-native-photo-gallery Goto Github PK
View Code? Open in Web Editor NEWSimple, yet powerful image gallery for React Native. Features zoom and pagination ! ๐ผ
License: MIT License
Simple, yet powerful image gallery for React Native. Features zoom and pagination ! ๐ผ
License: MIT License
android/src/main/java/com/reactnative/photoview/PhotoViewPackage.java:18: error: method does not override or implement a method from a supertype
@OverRide
^
Note: node_modules/react-native-photo-view/android/src/main/java/com/reactnative/photoview/ResourceDrawableIdHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:react-native-photo-view:compileReleaseJavaWithJavac FAILED
react-native-cli: 2.0.1
react-native: 0.47.2
Facing an issue with this plugin. I have a Gallery that is loading a dynamic array of images, anywhere from 8 to 30. Now, I've added logic to disable scrolling on the <FlatList
component, and instead want to rely on scrolling/clicking the thumbnails from <Pagination
to navigate. However, on occasion, the thumbnails don't render (the black ribbon does, but not the individual thumbnails):
The only way I can reliably get the thumbnails to render is by scrolling the component, which, since it is invisible, is not obvious UX:
Note: I've added an <ActivityIndicator
to each <SwiperThumb
, so I can tell if they are loading, so it's not an issue with the individual thumbnails not rendering:
Aside from the modifications to disable scrolling and the add an activity indicator on loading thumbnails, I haven't changed this plugin.
Any ideas what could be causing this?
Hi,
I tried with 100+ images. When click on the thumb it is taking time to load that slide. Also the image in the slide cutting from left and right end.
Hi Michael,
first of all thank you for this awesome library. Really slick, good looking solution!
I was wondering if there is a way to add some custom views to each slide. In my case I wanna show some tags, related to the image. Any idea how I could achieve this?
Best wishes, Sven.
E.g.:
<Gallery
data={[
{
id: 0,
image: 'http://lorempixel.com/300/170/animals/',
},
]}
/>
Whenever I have more than 4 images I get the following error:
Invariant Violation: [9017,"RCTView",191,{"width":"<>"}] is not usable as a native method argument
This is all the code I have, change the length to render more/fewer images:
import React, { Component } from 'react'
import { View } from 'react-native'
import PhotoGallery from 'react-native-photo-gallery';
const length = 4;
export default class Gallery extends Component {
static defaultProps = {
data: Array.from(
{ length },
(v, i) => ({
id: `image_${i}`,
image: { uri: `https://dummyimage.com/1500x1500/0ff/ff0.png&text=Image+${i}` },
thumb: { uri: `https://dummyimage.com/150x150/0ff/ff0.png&text=Image+${i}` },
// overlay: <Overlay />
})
)
}
render () {
return (
<View style={{ flex: 1 }}>
<PhotoGallery data={this.props.data} />
</View>
)
}
}
Is there a way to load dynamic images? require() needs static images from the assets. In my case I do have an array of file paths pointing to images that just got created by react-native-camera. Any way to do it with uri: ...
f.e.?
Regards!
A property that can have direction default left
if not chosen, or can be right
in order to make the carousel align to right and the gestures to be reversed
I'm using NativeBase. The view is something like
<Container>
<Header>
<Left>
<Button transparent>
<Icon name='arrow-back' />
</Button>
</Left>
<Body>
<Title>Header</Title>
</Body>
<Right />
</Header>
// <Content>
<Gallery backgroundColor="transparent" data={data} />
// </Content>
</Container>
If put in block, the header is shown, but the gallery paginator is pushed to below the bottom of view.
Crashes on Android with React Native 0.44.0 with the error message above.
SyntaxError node_modules/react-native-photo-gallery/src/index.js: Unexpected token, expected { (3:7)
Unexpected token, expected { (3:7)"
1 | export * from './Pagination';
2 | export * from './Slide';
3 | export GalleryList from './GalleryList';
Greetings,
How can I deactivate the zoom for images in the gallery?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.