npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-typical

v1.2.3

Published

react-typical for React Native. react-typical have trouble running in react native app due to the use of node.

Downloads

99

Readme

react-native-typical

React native version of react-typical package.

Change Log

1.2.3

  • Minor typing fix

1.2.2

  • Making all the props optional in typescript

1.2.1

  • Adding typescript support
  • Fixed an issue where new steps transition was not happening gracefully but instead flickering

1.2.0

  • Added support to gracefully transition to new steps
  • Added support to change blinking character using blinkChar. Default to '|'

1.1.2

  • Fixed a bug for not rendering dynamic steps
  • Fixed an issue regarding cursor on center text align

1.1.1

  • Updated README.md file.

1.1.0

  • Added new property blinkCursor to toggle cursor blinking
  • Added new property editDelay to determine delay while adding text
  • Added new property deleteDelay to determine delay while deleting text

Motivation

While working with react native and after few hours into trial and error of making react-typical work, I realized the React.createElement used in the library doesn't work as expected in react native as its not possible to get text from Text component (I am new to react native so hey no judjing if its not that hard afterall). So I wrapped the existing react-typical in react native Text component and ta da...

Installation

npm install --save react-native-typical
or
expo install react-native-typical

Usage

import React from "react";
import { StyleSheet, Text, View } from "react-native";
import TypingText from "react-native-typical";

export default function App() {
	return (
		<View style={styles.container}>
			<Text>Open up App.js to start working on your app!</Text>
			<TypingText
				steps={["Hello there", 1000, "Hello World !!!", 1000]}
				loop={Infinity}
				style={[styles.text]}
			/>
			<TypingText
				steps={[
					"This will run some time only",
					1000,
					"This will run 5 times only",
					1000,
				]}
				loop={5}
				blinkCursor={true}
				blinkChar="_"
				editDelay={80}
				deleteDelay={10}
			/>
		</View>
	);
}

const styles = StyleSheet.create({
	container: {
		flex: 1,
		backgroundColor: "#fff",
		alignItems: "center",
		justifyContent: "center",
	},
	text: {
		fontSize: 14,
	},
});

Properties

| Name | Type | Example | |-------------|---------------------|----------------------------------------| | steps | Array [] | ["string", 1000, "some more", 1000] | | loop | number | 5, 10, Infinity etc. | | blinkCursor | boolean | true (default) | | blinkChar | string | "|" (default) | | editDelay | number | 60 (default) | | deleteDelay | number | 60 (default) | | style | react native styles | {[styles.text, {fontSize: 50}]} etc. |


Annotations

This library is inspired from react-typical (for web) and logic is based on @camwiegert's light weight library.