Skip to content

Commit

Permalink
Merge pull request #64 from TheRealNate/dev
Browse files Browse the repository at this point in the history
Merge changes from dev into master
  • Loading branch information
TheRealNate authored Jun 8, 2021
2 parents 6de5e43 + 759dea5 commit af1364b
Show file tree
Hide file tree
Showing 13 changed files with 4,313 additions and 27 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ For React Native <0.60.0 use [react-native-meteor](https://github.com/inProgress
- Mixins (`connectMeteor`) have been removed
- `composeWithTracker` has been removed

# Using on Web
While this package was designed with React Native in mind, it is also capable of running on web (using `react-dom`). This can be useful if you need a light-weight Meteor implementation, if you want to create a client app separate from your server codebase, etc. The only change required is providing an AsyncStorage implementation. Here is a simple example:

````
const AsyncStorage = {
setItem:async (key, value) => window.localStorage.setItem(key, value),
getItem:async (key) => window.localStorage.getItem(key)
removeItem:async (key) => window.localStorage.removeItem(key)
}
Meteor.connect("wss://.../websock", {AsyncStorage});
````

# Changelog
The [GitHub Releases Tab](https://github.com/TheRealNate/meteor-react-native/releases) includes a full changelog

Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Version | Supported |
| ------- | ------------------ |
| 2.0.x | :white_check_mark: |
| >=2.0.0 | :white_check_mark: |

## Reporting a Vulnerability

Expand Down
6 changes: 3 additions & 3 deletions companion-packages/meteorrn-local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ const Local = {
};


LocalCol.insert = LocalCol.__insert;
LocalCol.update = LocalCol.__update;
LocalCol.remove = LocalCol.__remove;
LocalCol.__insert = LocalCol.insert;
LocalCol.__update = LocalCol.update;
LocalCol.__remove = LocalCol.remove;

LocalCol.insert = (...args) => {
LocalCol.__insert(...args);
Expand Down
2 changes: 1 addition & 1 deletion companion-packages/meteorrn-local/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meteorrn/local",
"version": "1.0.1",
"version": "1.0.2",
"description": "Store data locally",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit af1364b

Please sign in to comment.