Skip to content

Commit e4e8475

Browse files
author
waqas
committed
Used podspec values from package.json. Typo fixed.
1 parent ce7a78f commit e4e8475

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Text input mask for React Native on iOS and Android.
1818
```bash
1919
npm install --save react-native-text-input-mask
2020
# --- or ---
21-
yarn add react-native-permissions
21+
yarn add react-native-text-input-mask
2222
```
2323

2424
#Installation
@@ -59,8 +59,7 @@ No need to do anything.
5959

6060
</details>
6161

62-
<details>
63-
<summary><h4>For RN < 0.60</h4></summary>
62+
<details><summary><h4>For RN < 0.60</h4></summary>
6463

6564
### Auto Linking
6665
```bash

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-text-input-mask",
3-
"version": "1.0.6",
3+
"version": "2.0.0",
44
"description": "Text input mask for React Native.",
55
"main": "index.js",
66
"repository": {

RNTextInputMask.podspec renamed to react-native-text-input-mask.podspec

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
77
#
88

9+
require 'json'
10+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
11+
912
Pod::Spec.new do |s|
10-
s.name = 'RNTextInputMask'
11-
s.version = '2.0.0'
12-
s.summary = 'react community react-native-text-input-mask iOS库'
13-
14-
s.description = <<-DESC
15-
Text input mask for React Native, Android and iOS
16-
DESC
17-
18-
s.homepage = 'https://github.com/react-native-community/react-native-text-input-mask'
13+
s.name = package['name']
14+
s.version = package['version']
15+
s.summary = package['description']
16+
s.description = package['description']
17+
s.homepage = package['homepage']
18+
s.license = package['license']
19+
s.author = package['author']
1920
s.license = { :type => 'MIT', :file => 'LICENSE' }
20-
s.author = { 'react-native-community' => 'react-native-text-input-mask' }
2121
s.source = { :git => 'https://github.com/react-native-community/react-native-text-input-mask.git', :tag => s.version.to_s }
2222

2323
s.ios.deployment_target = '8.0'

0 commit comments

Comments
 (0)