# react-native-coredata

> React Native Core Data handler for iOS

Latest version **1.0.1** (published 2020-08-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-coredata
pnpm add react-native-coredata
yarn add react-native-coredata
bun add react-native-coredata
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-08-19 |
| First published | 2020-08-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Saumyadip Pramanik |
| Maintainers | saumyadipdev |
| Keywords | Core, Data, React, Native, iOS, Database |

## Links

- npm: https://www.npmjs.com/package/react-native-coredata
- npm.io page: https://npm.io/package/react-native-coredata

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-08-19
- 1.0.0 — 2020-08-18

## README

# react-native-coredata

## Getting started

`$ npm install react-native-coredata --save`

### Mostly automatic installation

`$ react-native link react-native-coredata`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-coredata` and add `RNCoredata.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNCoredata.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNCoredataPackage;` to the imports at the top of the file
  - Add `new RNCoredataPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-coredata'
  	project(':react-native-coredata').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-coredata/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-coredata')
  	```

#### Windows
[Read it! :D](https://github.com/ReactWindows/react-native)

1. In Visual Studio add the `RNCoredata.sln` in `node_modules/react-native-coredata/windows/RNCoredata.sln` folder to their solution, reference from their app.
2. Open up your `MainPage.cs` app
  - Add `using Coredata.RNCoredata;` to the usings at the top of the file
  - Add `new RNCoredataPackage()` to the `List<IReactPackage>` returned by the `Packages` method


## Usage
```javascript
import RNCoredata from 'react-native-coredata';

// TODO: What to do with the module?
RNCoredata;
```

---
_Source: https://npm.io/package/react-native-coredata · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
