Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-pull-zoom-view

7812382223ISC1.0.2

scrollview的滑动使图片伸缩

react, native, pwd, input

readme

react-native-pull-zoom-view

使用:

1、在终端进入到项目目录:npm i react-native-pull-zoom-view --save

2、实例:

import HeaderBar from 'react-native-pull-zoom-view'

<HeaderBar
    containerStyle={{backgroundColor:'red'}}
    title="我是title"/>

3、

containerStyle: 容器style

title: title

titleStyle: title style

leftText: 左侧文字

leftTextStyle: 左侧文字样式

leftImageSource: 左侧图片

leftImageStyle: 左侧图片样式

rightText: 右侧文字

rightTextStyle: 右侧文字样式

rightImageSource: 右侧图片

rightImageStyle: 右侧图片样式

onLeftPress:点击左侧回调

onRightPress: 点击右侧回调

image