1.1.3 • Published 8 years ago

react-native-textmore v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

react-native-textmore

npm version npm version js-standard-style

Install

npm install react-native-textmore --save

Usage:

<TextMore contentStyle={{color :'red' }} contentLines={2} contentText={'如果 v都会指 了 thisArg 参数,或者赋值为 null 或 undefined,则 this 指向全局对象 。'} />
    
<TextMore moreText={['Close', 'Open']} contentText={'如果 thisArg 参数有值,则每次 callback 函数被调用的时候,this 都会指向 thisArg 参数上的这个对象。如果省略了 thisArg 参数,或者赋值为 null 或 undefined,则 this 指向全局对象 。'} />
 
<TextMore contentLines={4} contentText={'map 方法会给原数组中的每个元素都按顺序调用一次 callback 函数。callback 每次执行后的返回值组合起来形成一个新数组。 callback 函数只会在有值的索引上被调用;那些从来没被赋过值或者使用 delete 删除的索引则不会被调用。'} />

https://github.com/Kennytian/react-native-textmore/blob/master/examples/launcher.js

Run Example:

Clone this repository from Github and cd to 'examples' directory then run npm install.

Screenshot:

屏幕截图

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago