Skip to content

Commit 3d0bb41

Browse files
committed
- adding pod installer for auto installation
1 parent 64b2c20 commit 3d0bb41

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

Example/android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
buildscript {
44
repositories {
55
jcenter()
6-
google()
6+
maven { url "https://maven.google.com" }
77
}
88
dependencies {
99
classpath 'com.android.tools.build:gradle:3.1.2'
@@ -17,7 +17,7 @@ allprojects {
1717
repositories {
1818
mavenLocal()
1919
jcenter()
20-
google()
20+
maven { url "https://maven.google.com" }
2121
maven {
2222
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
2323
url "$rootDir/../node_modules/react-native/android"

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ This library is a React Native bridge around native tooltips. It allows you to c
2121

2222
| **Android: [florent37/ViewTooltip](https://github.com/florent37/ViewTooltip)** |
2323
| ----------------- |
24-
| <img src="https://raw.githubusercontent.com/florent37/ViewTooltip/master/medias/with_border.gif" height="300" /> |
24+
| <img src="https://raw.githubusercontent.com/florent37/ViewTooltip/master/medias/with_border.gif" /> |
2525

2626

2727
| **iOS: [calm/SexyTooltip](https://github.com/calm/SexyTooltip)** |
2828
| ----------------- |
29-
| <img src="https://camo.githubusercontent.com/add1764d27026b81adb117e07a10781c9abbde1b/687474703a2f2f692e696d6775722e636f6d2f4f4e383257526c2e676966" height="300" /> |
29+
| <img src="https://camo.githubusercontent.com/add1764d27026b81adb117e07a10781c9abbde1b/687474703a2f2f692e696d6775722e636f6d2f4f4e383257526c2e676966" /> |
3030

3131

3232

@@ -46,7 +46,7 @@ Please add below snippet into your app `build.gradle`
4646
buildscript {
4747
repositories {
4848
jcenter()
49-
google()
49+
maven { url "https://maven.google.com" }
5050
...
5151
}
5252
...
@@ -56,7 +56,7 @@ buildscript {
5656
allprojects {
5757
repositories {
5858
maven { url 'https://jitpack.io' }
59-
google()
59+
maven { url "https://maven.google.com" }
6060
...
6161
}
6262
}
@@ -67,7 +67,8 @@ allprojects {
6767

6868
- **iOS**
6969

70-
`$ cd ./node_modules/react-native-tooltips/ios && pod install`
70+
- After `react-native link react-native-tooltips`, please verify `node_modules/react-native-tooltips/ios/` contains Pods folder. If does not exist please execute `pod install` command on `node_modules/react-native-tooltips/ios/`, if any error => try `pod repo` update then `pod install`
71+
7172

7273

7374
## 💻 Usage

android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
buildscript {
33
repositories {
44
jcenter()
5-
google()
5+
maven { url "https://maven.google.com" }
66
}
77

88
dependencies {
@@ -29,7 +29,7 @@ android {
2929

3030
repositories {
3131
mavenCentral()
32-
google()
32+
maven { url "https://maven.google.com" }
3333
}
3434

3535
dependencies {

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "React Native: Native Tooltip View",
55
"main": "RNTooltips.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"postinstall": "node ../pod-installer/index.js"
89
},
910
"keywords": [
1011
"react-native"
@@ -13,6 +14,9 @@
1314
"type": "git",
1415
"url": "https://github.com/prscX/react-native-tooltips.git"
1516
},
17+
"dependencies": {
18+
"pod-installer": "0.0.0"
19+
},
1620
"devDependencies": {
1721
"prettier-pack": "0.0.7"
1822
},

0 commit comments

Comments
 (0)