"Open source" rn-expandabletext:reactnative Long text folding component

"Open source" rn-expandabletext:reactnative Long text folding component

技术 3 months ago (09-19) Views: 6 Comments: 0

Introduced Mobile development often encounters this situation: we need to do a folding function for the text that is too long, so the react Native,rn-expandabletext is a component that solves the problem, and it is used in the same way as the native text component. But when your content exceeds the specified number of lines, it will help you to automatically fold the content.Click Expand to display all content. Project Address: Https://github.com/geekeren/RN-ExpandableText Install Expandabletext Usage Demos Properties Prop Description Default NumberOfLines The max number of lines the content is, the content exceed this value, the Expandview would show. 5 Expandview A callback function to return Expand-view, you can customize the Expand-view. When it ' s null, Expand-view'll disappear Unexpandview A callback function to return Unexpand-view. Usage the same as Expandview Onexpand A callback when the content expands - Oncollapse A callback when the content collapses - Follow Me Follow me on Wechat

Base64 support in React Native

Base64 support in React Native

Algorithm language 2 years ago (2017-03-08) Views: 18 Comments: 0

Most recent guests have used React Native's own blog client. When the client invokes the WordPress Rest API, some operations require HTTP authentication. In HTTP authentication, the "Authorization" field is added to the header of the HTTP request. The contents of the field when the user name: base64 encoding of the password Environmental dependence The Base64 codec algorithm is supported in the Nodejs buffer component. First we need to run the command line to install the buffer dependencies in the root directory of the React Native project: npm install buffer --save After installing, the app.json in the root directory of React Native The dependencies will automatically add the following one: Base64 support in React Native How to use Introduce coding decoding   Buffer project home page: For more ways to use buffers, refer to the Buffer home page: https://github.com/feross/buffer

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW