Comments (8)
@tosslee your solution is perfect. I'll just translate it.
如果是跟例子一样用Modal包着ImageView,给onRequestClose传一个函数控制visible属性就行了
Translation: If you're using a <Modal>
just pass it onRequestClose
props with your control state boolean toggle function.
Example:
//render
<Modal visible={this.state.isFullscreen} transparent={true}
onRequestClose={() => { this.toggleFullscreen(false) }}>{...}</Modal>
toggleFullscreen = (val) => {
this.setState((prevState) => ({
isFullscreen: val
}))
}
from react-native-image-viewer.
如果是跟例子一样用Modal包着ImageView,给onRequestClose传一个函数控制visible属性就行了
from react-native-image-viewer.
这个插件不会干扰监听物理键的,它只会截断作用范围内UI的手势
from react-native-image-viewer.
是我的问题
from react-native-image-viewer.
是什么问题呢?我也遇到了
from react-native-image-viewer.
什么原因?
from react-native-image-viewer.
我的安卓点击虚拟返回键没有效果
from react-native-image-viewer.
@yuanji123 你是怎么解决的?
from react-native-image-viewer.
Related Issues (20)
- Very large images will appear blurry on Android HOT 2
- 无法滑动图片,滑动事件老是触发点击事件 HOT 1
- remote SVG image can't be rendered? HOT 7
- 安卓有时候无法全屏
- When closed it is instant. Is there a way to fix this?
- Vertical swap
- 我这样加载怎么是黑屏,加载示例的图片没问题
- Image cannot be loaded when opened first time HOT 3
- ERROR Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in ImageViewer HOT 2
- Feature request: swipe up to close HOT 1
- Image is rendered only when opened second time in android
- flickering when zoom HOT 2
- Image is not rendering in iOS HOT 4
- Dynamic change array of images HOT 2
- Restrict Loop on swipe HOT 1
- Can not show image slide like package with error no suitable image URL loader found for (null)
- There should be a feature,if i touch outside the image or touch the blur area on screen, there is a event call
- Help with renderHeader/Footer props not showing anything HOT 1
- Add close button in Modal? HOT 1
- 设置pageAnimateTime 无效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-image-viewer.