Skip to content

Commit 1e29e4a

Browse files
committed
Updated README
1 parent 36e7b8d commit 1e29e4a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ Measure text width and height without laying it out.
99

1010
## Automatic installation
1111

12-
`$ yarn add react-native-text-size`
13-
14-
`$ react-native link react-native-text-size`
12+
```bash
13+
$ yarn add react-native-text-size
14+
$ react-native link react-native-text-size
15+
```
1516

1617
## Manual installation
1718

@@ -25,15 +26,15 @@ Measure text width and height without laying it out.
2526
#### Android
2627

2728
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
28-
- Add `import io.github.amarcruz.RNMeasureTextPackage;` to the imports at the top of the file
29+
- Add `import io.amarcruz.rnmeasuretext.RNMeasureTextPackage;` to the imports at the top of the file
2930
- Add `new RNMeasureTextPackage()` to the list returned by the `getPackages()` method
3031
2. Append the following lines to `android/settings.gradle`:
31-
```
32+
```groovy
3233
include ':react-native-text-size'
3334
project(':react-native-text-size').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-text-size/android')
3435
```
3536
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
36-
```
37+
```groovy
3738
compile project(':react-native-text-size')
3839
```
3940

@@ -102,4 +103,4 @@ Copyright (c) 2017 Alberto Martínez (https://github.com/aMarCruz)
102103
[npm-image]: https://img.shields.io/npm/v/react-native-text-size.svg
103104
[npm-url]: https://www.npmjs.com/package/react-native-text-size
104105
[license-image]: https://img.shields.io/npm/l/express.svg
105-
[license-url]: https://github.com/aMarCruz/jscc-brunch/blob/master/LICENSE
106+
[license-url]: https://github.com/aMarCruz/react-native-text-size/blob/master/LICENSE

0 commit comments

Comments
 (0)