Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cawfree/react-native-cycle-text

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cawfree/react-native-cycle-text

A simple React Native component which lets you randomly cycle through an array of text Strings.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-cycle-text

A simple React Native component which lets you randomly cycle through an array of text Strings.

It is compatible with react-native-web, and also has built-in hyperlink support!

🚀 Getting Started

Using npm:

npm install --save @cawfree/react-native-cycle-text

Using yarn:

yarn add @cawfree/react-native-cycle-text

✍️ Example

import TextCycler from '@cawfree/react-native-cycle-text';

export default ({ ...extraProps }) => (
  <TextCycler
    onPress={(url) => {
      // Returned if a user tapped on a hyperlink.
    }}
    duration={2000}
    nextMessage={() => {
      return Math.random() > 0.5 ? [
        'https://github.com/Cawfree are now welcome!',
        'Pull requests',
      ] : [
        'There\'s no better feeling than when somebody contributes to your repo on https://github.com/Cawfree.',
        'GitHub',
      ];
    }}
  />
);

✌️ License

MIT

FAQs

Package last updated on 17 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc