-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from npm to yarn and update README (#2508)
* Move from npm to yarn and update README * removing yarn.lock from gitignore * update node version * moving pipeline.yml to yarn * adding yarnrc * fix yarn.lock regestry
- Loading branch information
1 parent
f2e4d9b
commit 8d924e7
Showing
7 changed files
with
8,207 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
node_modules | ||
npm-debug.log | ||
.idea | ||
yarn.lock | ||
.vscode | ||
package-lock.json | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18 | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--registry "https://registry.npmjs.org/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,7 @@ | |
## A declarative cross-platform React Native calendar component for iOS and Android. | ||
|
||
[![Version](https://img.shields.io/npm/v/react-native-calendars.svg)](https://www.npmjs.com/package/react-native-calendars) | ||
[![Build Status](https://travis-ci.org/wix/react-native-calendars.svg?branch=master)](https://travis-ci.org/wix/react-native-calendars) | ||
|
||
[![Build status](https://badge.buildkite.com/1a911fa39db2518a615b73f3dc18ec0938a66403f2ad66f79b.svg)](https://buildkite.com/wix-mobile-oss/react-native-calendars) | ||
<br> | ||
|
||
This module includes information on how to use this customizable **React Native** calendar component. | ||
|
@@ -40,7 +39,7 @@ $ git clone [email protected]:wix/react-native-calendars.git | |
$ cd react-native-calendars | ||
$ npm install | ||
$ yarn install | ||
$ cd ios && pod install && cd .. | ||
|
@@ -57,14 +56,6 @@ Here's how to get started with react-native-calendars in your React Native proje | |
|
||
### Install the package: | ||
|
||
Using `npm`: | ||
|
||
``` | ||
$ npm install --save react-native-calendars | ||
``` | ||
|
||
Using `Yarn`: | ||
|
||
``` | ||
$ yarn add react-native-calendars | ||
``` | ||
|
@@ -197,13 +188,6 @@ export default App; | |
### Adding a global theme to the calendar: | ||
|
||
```javascript | ||
import React, { useState } from 'react'; | ||
import { Calendar, LocaleConfig } from 'react-native-calendars'; | ||
|
||
const App = () => { | ||
const [selected, setSelected] = useState(''); | ||
|
||
return ( | ||
<Calendar | ||
style={{ | ||
borderWidth: 1, | ||
|
@@ -218,7 +202,9 @@ const App = () => { | |
selectedDayTextColor: '#ffffff', | ||
todayTextColor: '#00adf5', | ||
dayTextColor: '#2d4150', | ||
textDisabledColor: '#d9e | ||
textDisabledColor: '#dd99ee' | ||
}} | ||
</Calendar> | ||
``` | ||
|
||
## Customized Calendar Examples | ||
|
@@ -282,7 +268,7 @@ We welcome contributions to react-native-calendars. | |
|
||
If you have an idea for a new feature or have discovered a bug, please open an issue. | ||
|
||
Please `npm run test` and `npm run lint` before pushing changes. | ||
Please `yarn test` and `yarn lint` before pushing changes. | ||
|
||
Don't forget to add a **title** and a **description** explaining the issue you're trying to solve and your proposed solution. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.