Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 7afeee9

Browse files
committed
update readme and package.json
1 parent c1ca314 commit 7afeee9

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ Improved Text Component
55
## Installation
66

77
```sh
8-
npm install react-native-text
8+
npm install react-native-improved
99
```
1010

1111
## Usage
1212

1313
```js
14-
import { TextView } from "react-native-text";
14+
import { TextImproved } from 'react-native-improved';
1515

1616
// ...
1717

18-
<TextView color="tomato" />
18+
<TextImproved>My new text works</Text>;
1919
```
2020

2121
## Contributing

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "react-native-text-example",
2+
"name": "react-native-improved-example",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {

example/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22

33
import { View, StyleSheet, Text, TextInput } from 'react-native';
4-
import { TextViewImproved } from 'react-native-text';
4+
import { TextImproved } from 'react-native-improved';
55

66
export default function App() {
77
const email =
@@ -10,13 +10,13 @@ export default function App() {
1010
<>
1111
<View style={styles.container}>
1212
<View style={styles.flexBrokenStyle}>
13-
<TextViewImproved
13+
<TextImproved
1414
textBreakStrategy="simple"
1515
style={styles.parentText}
1616
numberOfLines={1}
1717
>
1818
{email}
19-
</TextViewImproved>
19+
</TextImproved>
2020
</View>
2121
<TextInput style={styles.input} />
2222
<Text>Normal Text</Text>

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "react-native-text",
2+
"name": "react-native-improved",
33
"version": "0.1.0",
4-
"description": "Improved Text Component",
4+
"description": "Improved React Native Components",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
77
"types": "lib/typescript/src/index.d.ts",
@@ -26,7 +26,7 @@
2626
"!**/.*"
2727
],
2828
"scripts": {
29-
"example": "yarn workspace react-native-text-example",
29+
"example": "yarn workspace react-native-improved-example",
3030
"test": "jest",
3131
"typecheck": "tsc --noEmit",
3232
"lint": "eslint \"**/*.{js,ts,tsx}\"",
@@ -41,14 +41,14 @@
4141
],
4242
"repository": {
4343
"type": "git",
44-
"url": "git+https://github.com/fabriziobertoglio1987/react-native-text.git"
44+
"url": "git+https://github.com/fabriziobertoglio1987/react-native-improved.git"
4545
},
4646
"author": "Fabrizio Bertoglio <[email protected]> (https://github.com/fabriziobertoglio1987)",
4747
"license": "MIT",
4848
"bugs": {
49-
"url": "https://github.com/fabriziobertoglio1987/react-native-text/issues"
49+
"url": "https://github.com/fabriziobertoglio1987/react-native-improved/issues"
5050
},
51-
"homepage": "https://github.com/fabriziobertoglio1987/react-native-text#readme",
51+
"homepage": "https://github.com/fabriziobertoglio1987/react-native-improved#readme",
5252
"publishConfig": {
5353
"registry": "https://registry.npmjs.org/"
5454
},

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const NativeTextImproved = createReactNativeComponentClass(
3939
() => createViewConfig(textViewConfig)
4040
);
4141

42-
export const TextViewImproved = (props) => {
42+
export const TextImproved = (props) => {
4343
const TextComponent =
4444
Platform.OS == 'ios' ? (
4545
<Text {...props} />

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11016,9 +11016,9 @@ __metadata:
1101611016
languageName: node
1101711017
linkType: hard
1101811018

11019-
"react-native-text-example@workspace:example":
11019+
"react-native-improved-example@workspace:example":
1102011020
version: 0.0.0-use.local
11021-
resolution: "react-native-text-example@workspace:example"
11021+
resolution: "react-native-improved-example@workspace:example"
1102211022
dependencies:
1102311023
"@babel/core": ^7.20.0
1102411024
"@babel/preset-env": ^7.20.0
@@ -11035,9 +11035,9 @@ __metadata:
1103511035
languageName: unknown
1103611036
linkType: soft
1103711037

11038-
"react-native-text@workspace:.":
11038+
"react-native-improved@workspace:.":
1103911039
version: 0.0.0-use.local
11040-
resolution: "react-native-text@workspace:."
11040+
resolution: "react-native-improved@workspace:."
1104111041
dependencies:
1104211042
"@commitlint/config-conventional": ^17.0.2
1104311043
"@evilmartians/lefthook": ^1.5.0

0 commit comments

Comments
 (0)