# @socialize/react-native-meteor-collection2

> Meteor's Collection2 ported for React Native

Latest version **1.1.1** (published 2020-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @socialize/react-native-meteor-collection2
pnpm add @socialize/react-native-meteor-collection2
yarn add @socialize/react-native-meteor-collection2
bun add @socialize/react-native-meteor-collection2
```

## 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.1.1 |
| Published | 2020-08-05 |
| First published | 2018-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 27.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kelly Copley |
| Maintainers | copleykj |
| Keywords | meteor, collection2, react-native, simple-schema, simpl-schema, mongodb, isomorphic, schema, validation |

## Links

- npm: https://www.npmjs.com/package/@socialize/react-native-meteor-collection2
- Repository: https://github.com/copleykj/react-native-meteor-collection2
- Homepage: https://github.com/copleykj/react-native-meteor-collection2#readme
- Issues: https://github.com/copleykj/react-native-meteor-collection2/issues
- npm.io page: https://npm.io/package/@socialize/react-native-meteor-collection2

## Dependencies (8)

- [clone](https://npm.io/package/clone.md) ^2.1.2
- [ejson](https://npm.io/package/ejson.md) ^2.2.0
- [simpl-schema](https://npm.io/package/simpl-schema.md) ^1.9.0
- [lodash.isempty](https://npm.io/package/lodash.isempty.md) ^4.4.0
- [lodash.isequal](https://npm.io/package/lodash.isequal.md) ^4.5.0
- [lodash.isobject](https://npm.io/package/lodash.isobject.md) ^3.0.2
- [wolfy87-eventemitter](https://npm.io/package/wolfy87-eventemitter.md) ^5.2.9
- [@socialize/react-native-meteor](https://npm.io/package/@socialize/react-native-meteor.md) ^2.0.2

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2020-08-05
- 1.1.0 — 2018-10-11
- 1.0.3 — 2018-04-18
- 1.0.2 — 2018-04-03
- 1.0.1 — 2018-04-03
- 1.0.0 — 2018-04-03

## README

# react-native-meteor-collection2 #
This project is a port of the Meteor package `aldeed:collection2-core` to make it's functionality available in React Native.

## Supporting the Project ##
If you appreciate the open source work I do, you can help keep me going with a small donation for my time and effort.

![Litecoin](http://gdurl.com/xnOe)

[Patreon](https://www.patreon.com/user?u=4866588) / [Paypal](https://www.paypal.me/copleykj)

## Installation ##

```sh
$ npm install --save react-native-meteor-collection2
```

## Basic Usage ##
We'll assume here that you have a working Meteor app and you have an open ddp connection established using `react-native-meteor`;

```javascript
import Collection from 'react-native-meteor-collection2';
import SomeSchema from '../api/SomeCollection/schema.js'; //We'll assume you share schemas with your meteor app
import { ToastAndroid } from react-native

const SomeCollection = new Collection('someCollection');

SomeCollection.attachSchema(SomeSchema);

try {
    SomeCollection.insert({data:"This is test data"});
} catch (e) {
    ToastAndroid.show(`Insert failed, ${e.reason}`, ToastAndroid.LONG)
}
```

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