Socket
Book a DemoInstallSign in
Socket

typewriter4react-native

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typewriter4react-native

Customizable typewriter-style text animation component for React Native. Built for smooth, lightweight, and flexible usage in mobile apps.

0.5.2
latest
Source
npmnpm
Version published
Weekly downloads
288
-41.22%
Maintainers
1
Weekly downloads
 
Created
Source

typewriter4react-native

Customizable typewriter-style text animation component for [React Native].

Built for smooth, lightweight, and flexible usage in mobile apps.

Currently the only open-source React Native typewriter that ensures stable container sizing.

Fully compatible with Expo.

Update: July 31, 2025

Version: 0.5.2

New updates:

  • Added 'pause' feature
  • Numerous bugfixes
  • Example app has been updated
  • Readme has been updated

Examples

Example App Example App

Installation

npm install --save typewriter4react-native

or

yarn add typewriter4react-native

Usage

Pass text and selected customization data into the component to set up the animation.

import { Typewriter } from "typewriter4react-native";

const SomeComponent = () => {
    return (
        <Typewriter
            isActive
            reserveSpace
            speed="fast"
            textStyle={{
                fontSize: 30,
                fontFamily: "Roboto",
            }}
            text="Lorem ipsum dolor sit amet..."
        />
    );
};

Documentation

PropTypeDescriptionDefault
textstringThe text string that is to be animated.
textStyleStyleProp<TextStyle>Text style.{ fontSize: DEFAULT_FONTSIZE_VALUE, color: 'black', flexWrap: 'wrap' }
cursorStyle`Omit<ViewStyle, 'backgroundColor''opacity'> & { color?: ViewStyle['backgroundColor']; minOpacity?: ViewStyle['opacity']; maxOpacity?: ViewStyle['opacity']; fontSize?: TextStyle['fontSize']; fontWeight?: TextStyle['fontWeight']; }`Cursor style. Size/position are derived from the font size by default (unless explicit values are stated). Opacity is controlled by minOpacity & maxOpacity.
containerStyleStyleProp<ViewStyle>Container style.
speed'slow' | 'medium' | 'fast' | 'very_fast' | 'fastest'Typing speed presets. Ignored if typingDelayPerChar is set. Options (equivalent values in ms per char): 'slow' (150), 'medium' (125), 'fast' (100), 'very_fast' (75), 'fastest' (55).'fast'
hideCursorOnFinishbooleanDetermines if the cursor disappears after the text is displayed.true
isActivebooleanDetermines if the animation should run.true
startDelaynumberDelay in ms before animation starts after activation.
cursorDisappearDelaynumberHow many ms the cursor stays after text is displayed.
cursorBlinkTimenumberHow many ms a single cursor blink lasts.200
onFinish() => voidCallback when typing animation finishes (before cursor disappears).
reserveSpacebooleanReserves space for the text before it appears.true
backwardsbooleanIf true, animation erases text instead of typing it.
typingDelayPerCharnumberDelay in ms per character. Overrides speed.Derived from speed
typingDelayPerCharVariancenumberRandom additional delay variance per character.100
cursorType'view' | 'text_simple'Cursor type. 'view' is customizable; 'text_simple' is simpler but more limited.'view'
cursorTextSimpleCustomCharstringReplaces the | string in text_simple cursor. Recommended single character.
disableCursorbooleanIf true, the cursor isn't rendered.false
pausebooleanIf true, pauses writing text. Cursor remains (if not disabled).

Contributing

Best contact me via GitHub or e-mail if you are willing to contribute.
Some of the planned (or dreamed) additions are listed in the file toadd.txt in the root folder of the package repository.

License

MIT

Keywords

react-native

FAQs

Package last updated on 02 Sep 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.