Comments (3)
from zqc-app-demo.
用的react-native-gallery
这个第三方库。
Album.js
...
render() {
let {navigator, screen, setScreenState} = this.props;
let {files, currentIndex, navBarHidden} = screen[this.screenId];
navigator.toggleNavBar({'to': (navBarHidden ? 'hidden' : 'shown')});
return (
<components.Layout screenId={this.screenId} containerStyle={{backgroundColor: 'black'}}>
<components.ActionSheet ref={ref => this.actionSheet = ref} />
<Gallery
images={files.map(v => helpers.fileImageSource(v, 'huge').uri)}
initialPage={currentIndex}
pageMargin={5}
onPageSelected={index => setScreenState(this.screenId, {currentIndex: index})}
onSingleTapConfirmed={() => setScreenState(this.screenId, {navBarHidden: !navBarHidden})}
/>
</components.Layout>
);
}
}
...
from zqc-app-demo.
你好,我也用了一下,但是图片双击放大和手势缩放的倍数很小呢,并没有你的应用里的放大倍数大;而且initialPage这个问题也没有解决掉。
from zqc-app-demo.
Related Issues (19)
- 按步骤运行项目出现一个错误 HOT 1
- 打开应用报错 HOT 2
- startTabBasedApp 加载所有tabs页面 会特别卡 HOT 2
- 项目运行错误 HOT 7
- running "react-native run-android" failed HOT 3
- Building release version for iOS failed HOT 4
- mac 运行出错 HOT 4
- 可否开源全部代码? HOT 1
- 注册一直提示参数错误,无法注册登录 HOT 1
- 没有更新功能,不能添加发布动态 HOT 1
- 服务器是不是关掉了啊 HOT 9
- 赞叹:老师, 代码写的真是太好了!!! HOT 2
- 想请教下网络状态的问题 HOT 1
- 编译问题 HOT 1
- 为什么感觉应用商店的APP,比用rn直接运行的要流畅呢? HOT 1
- 关于页面切换的问题 HOT 6
- undefined is not an object(evaluating _ref.store.version) in /src/store.js
- 网络出错: 未检测到网络连接 请确保WIFI或移动网络正常可以用 HOT 1
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 zqc-app-demo.