项目作者: sishuguojixuefu

项目描述 :
add custom props to react native component
高级语言: JavaScript
项目地址: git://github.com/sishuguojixuefu/react-native-add-custom-props.git
创建时间: 2018-09-06T03:28:01Z
项目社区:https://github.com/sishuguojixuefu/react-native-add-custom-props

开源协议:MIT License

下载


react-native-add-custom-props

add custom props tp react native component

Install

  1. $ yarn add react-native-add-custom-props

Usage

  1. import addCustomProps from 'react-native-add-custom-props'
  2. // 处理ios系统文字,可以判断一下平台
  3. addCustomProps(Text, {allowFontScaling: false})
  4. addCustomProps(TextInput, {allowFontScaling: false})