Skip to content

Commit 10af70f

Browse files
author
waqas
committed
Updated readme for instructions about rn >= 0.60.1 and added swift version in RNInputMask pod file.
1 parent e4e8475 commit 10af70f

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,31 @@ npm install --save react-native-text-input-mask
2121
yarn add react-native-text-input-mask
2222
```
2323

24-
#Installation
24+
# Installation
2525

2626
<details>
27-
<summary><h4>For RN >= 0.60</h4></summary>
27+
<summary><b>For RN >= 0.61</b></summary>
28+
29+
#### iOS
30+
31+
1. Add following lines to your target in `Podfile`
32+
```
33+
use_frameworks!
34+
pod 'RNInputMask', :path => '../node_modules/react-native-text-input-mask/ios/InputMask'
35+
```
36+
2. Run following command
37+
```bash
38+
cd ios && pod install
39+
```
40+
41+
#### Android
42+
43+
No need to do anything.
44+
45+
</details>
46+
47+
<details>
48+
<summary><b>For RN = 0.60.*</b></summary>
2849

2950
#### iOS
3051

@@ -44,7 +65,7 @@ yarn add react-native-text-input-mask
4465

4566
![Create Swift File](https://i.imgur.com/f2zA0n9.png)
4667

47-
5. Add following line to your `Podfile`
68+
5. Add following line to your target in `Podfile`
4869
```
4970
pod 'RNInputMask', :path => '../node_modules/react-native-text-input-mask/ios/InputMask'
5071
```
@@ -59,7 +80,7 @@ No need to do anything.
5980

6081
</details>
6182

62-
<details><summary><h4>For RN < 0.60</h4></summary>
83+
<details><summary><b>For RN < 0.60</b></summary>
6384

6485
### Auto Linking
6586
```bash

ios/InputMask/RNInputMask.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Pod::Spec.new do |spec|
1010
spec.platform = :ios, "8.0"
1111
spec.requires_arc = true
1212
spec.source_files = "InputMask/Classes/**/*"
13+
spec.swift_version = "5.0"
1314
end

react-native-text-input-mask.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ Pod::Spec.new do |s|
1919
s.author = package['author']
2020
s.license = { :type => 'MIT', :file => 'LICENSE' }
2121
s.source = { :git => 'https://github.com/react-native-community/react-native-text-input-mask.git', :tag => s.version.to_s }
22-
22+
2323
s.ios.deployment_target = '8.0'
24-
24+
2525
s.source_files = "ios/**/*.{h,m}"
2626
s.dependency 'React'
2727
s.dependency 'RNInputMask'
28-
end
28+
end

0 commit comments

Comments
 (0)