You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-17Lines changed: 16 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
-
# react-native-calendar-manager
1
+
# rn-calendar-manager
2
2
3
-
A calendar manager for React Native.
4
-
Exposes `addEvent` method which can save an event to an Android or iOS device's native calendar app.
3
+
*Note*
4
+
We renamed the package from `react-native-calendar-manager` to `rn-calendar-manager` because the name was already taken on npm before we published.
5
+
6
+
A calendar manager for React Native. Exposes `addEvent` method which can save an event to an Android or iOS device's native calendar app.
5
7
6
8
## Supported React Native platforms
7
9
@@ -10,40 +12,37 @@ Exposes `addEvent` method which can save an event to an Android or iOS device's
10
12
11
13
## Plugin installation
12
14
13
-
Run `npm install --save git+ssh://git@bitbucket.org:fiveminutes/react-native-calendar-manager.git`
15
+
Run `npm install --save rn-calendar-manager`
14
16
15
17
### Linking
16
18
17
-
Run:
18
-
19
-
`$ react-native link react-native-calendar-manager`
19
+
If you're running React Native 0.60.0+, you're done, this module supports autolinking. If you're using React Native 0.59.10 and lower, check tag v1.0.7 instructions.
20
20
21
-
Which will link all native dependencies from the plugin, as well as add a directory containing your app's AppDelegate to CalendarManager projects build path which is necessary for building the iOS dependencies.
21
+
Otherwise, check the manual linking section.
22
22
23
-
### Manual plugin linking
23
+
### Manual linking
24
24
25
25
#### iOS
26
26
27
-
1. Open your project in XCode, right click on `Libraries` and click `Add
28
-
Files to "Your Project Name"` Look under `node_modules/react-native-calendar-manager` and add `CalendarManager.xcodeproj`.
27
+
1. Open your project in Xcode, right click on `Libraries` and click `Add
28
+
Files to "Your Project Name"` Look under `node_modules/rn-calendar-manager` and add `CalendarManager.xcodeproj`.
29
29
2. Add `libCalendarManager.a` to `Build Phases -> Link Binary With Libraries`
30
30
3. Click on `CalendarManager.xcodeproj` in `Libraries` and go the `Build
31
31
Settings` tab. Double click the text to the right of `Header Search
32
32
Paths` and verify that it has the lines `$(SRCROOT)/../../node_modules/react-native/React/**` and `$(SRCROOT)/node_modules/react-native/React/**` - if it
33
-
doesn't, then add them. This is so XCode is able to find the headers that
33
+
doesn't, then add them. This is so Xcode is able to find the headers that
34
34
the `CalendarManager` source files are referring to by pointing to the
35
35
header files installed within the `react-native``node_modules`
36
36
directory.
37
-
4. Add the line `$(SRCROOT)/../../ios/<YOUR PROJECT'S NAME>` as well, so that CalendarManager can find yor AppDelegate header file.
38
37
39
38
#### Android
40
39
41
40
1. in `android/settings.gradle`
42
41
```
43
42
#!groovy
44
43
...
45
-
include ':react-native-calendar-manager'
46
-
project(':react-native-calendar-manager').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-calendar-manager/android')
44
+
include ':rn-calendar-manager'
45
+
project(':rn-calendar-manager').projectDir = new File(rootProject.projectDir, '../node_modules/rn-calendar-manager/android')
47
46
48
47
```
49
48
@@ -52,7 +51,7 @@ Which will link all native dependencies from the plugin, as well as add a direct
0 commit comments