【文件属性】:
文件名称:eact-native-image-slider-with-text:带有文本的本机图像滑块
文件大小:801KB
文件格式:ZIP
更新时间:2021-03-13 18:19:57
JavaScript
用文本React本机图像滑块
安装
首先,安装我们的库| 在下面的npm脚本中使用
NPM我与文本React本地图像滑块
纱线添加带有文本的本机图像滑块。
用法 :
可用于自定义SliderBox的道具列表:
道具
值类型
描述
ImageComponent
图像组件,默认为Image
默认值为React-native Image,如果您使用像FastImage这样的第三方库,请使用此属性
图片
图片路径(或网址)的数组,为字符串
设置图像路径数组-这些路径可以使用require('./pathOfImage')包含http url link或local images path
onCurrentImagePressed
处理函数回调
获取按下的图像索引的回调(索引从0开始)
currentImageEmitter
处理函数回调
用于获取当前图像索引的回调(索引从0开始)
【文件预览】:
eact-native-image-slider-with-text-main
----.babelrc(60B)
----.npmignore(144B)
----example()
--------metro.config.js(300B)
--------.flowconfig(2KB)
--------.gitattributes(16B)
--------yarn.lock(288KB)
--------.eslintrc.js(74B)
--------babel.config.js(77B)
--------ios()
--------components()
--------android()
--------assets()
--------App.js(3KB)
--------__tests__()
--------.buckconfig(114B)
--------app.json(51B)
--------.gitignore(813B)
--------.prettierrc.js(120B)
--------index.js(183B)
--------.watchmanconfig(2B)
--------package.json(758B)
----LICENSE(1KB)
----assets()
--------pic7.jpg(30KB)
--------pic3.jpg(14KB)
--------pic1.jpg(38KB)
--------pic2.jpg(43KB)
--------gif.gif(266KB)
--------pic6.jpg(30KB)
--------pic5.jpg(38KB)
--------pic4.jpg(38KB)
----README.md(5KB)
----dist()
--------SliderBox.style.js(386B)
--------SliderBox.js(5KB)
----.gitignore(793B)
----index.js(69B)
----package.json(1KB)