File tree Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,31 @@ npm install --save react-native-text-input-mask
2121yarn 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```
4970pod '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
Original file line number Diff line number Diff 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"
1314end
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments