Installations
npm install react-native-typical
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
14.19.3
NPM Version
6.14.17
Score
72.1
Supply Chain
99.3
Quality
75.9
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
11kodykay11
Download Statistics
Total Downloads
13,112
Last Day
1
Last Week
21
Last Month
65
Last Year
1,338
GitHub Statistics
2 Stars
24 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Bundle Size
2.62 kB
Minified
1.23 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.2.3
Package Id
react-native-typical@1.2.3
Unpacked Size
15.40 kB
Size
4.76 kB
File Count
6
NPM Version
6.14.17
Node Version
14.19.3
Publised On
11 Sept 2023
Total Downloads
Cumulative downloads
Total Downloads
13,112
Last day
-92.9%
1
Compared to previous day
Last week
-4.5%
21
Compared to previous week
Last month
-5.8%
65
Compared to previous month
Last year
-75.3%
1,338
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
3
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
1import React from "react"; 2import { StyleSheet, Text, View } from "react-native"; 3import TypingText from "react-native-typical"; 4 5export default function App() { 6 return ( 7 <View style={styles.container}> 8 <Text>Open up App.js to start working on your app!</Text> 9 <TypingText 10 steps={["Hello there", 1000, "Hello World !!!", 1000]} 11 loop={Infinity} 12 style={[styles.text]} 13 /> 14 <TypingText 15 steps={[ 16 "This will run some time only", 17 1000, 18 "This will run 5 times only", 19 1000, 20 ]} 21 loop={5} 22 blinkCursor={true} 23 blinkChar="_" 24 editDelay={80} 25 deleteDelay={10} 26 /> 27 </View> 28 ); 29} 30 31const styles = StyleSheet.create({ 32 container: { 33 flex: 1, 34 backgroundColor: "#fff", 35 alignItems: "center", 36 justifyContent: "center", 37 }, 38 text: { 39 fontSize: 14, 40 }, 41});
Properties
Name | Type | Example |
---|---|---|
steps | Array [] | ["string", 1000, "some more", 1000] |
loop | number | 5, 10, Infinity etc. |
blinkCursor | boolean | true (default) |
blinkChar | string | " |
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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Score
2.6
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More