Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@meteorrn/core
Advanced tools
Connect React Native to your Meteor app. Based on react-native-meteor, and compatible with the latest version of React Native.
You can view a guide to using React Native with Meteor on the Official Meteor Guide
Meteor React Native is now published under @meteorrn/core
. We will continue to publish updates to the meteor-react-native
repository until 2.1.0
. We recommend updating to the new package name as soon as possible.
npm install --save @meteorrn/core
@react-native-community/netinfo
installed@react-native-community/async-storage@>=1.8.1
installed. If you are using Expo, or otherwise cannot use @react-native-community/async-storage
, see Custom Storage Adapter below.This package uses @react-native-community/async-storage
by default. This may cause issues if you are using certain React Native versions, or if you are using Expo. To use a custom AsyncStorage implementation, pass it as an option in Meteor.connect
:
import { AsyncStorage } from 'react-native';
// ...
Meteor.connect("wss://myapp.meteor.com/websocket", { AsyncStorage });
import Meteor, { Mongo, withTracker } from '@meteorrn/core';
let MyCol = new Mongo.Collection("mycol");
Meteor.connect("wss://myapp.meteor.com/websocket"); // Note the /websocket after your URL
class App extends React.Component {
render() {
let {myThing} = this.props;
return (
<View>
<Text>Here is the thing: {myThing.name}</Text>
</View>
);
}
}
let AppContainer = withTracker(() => {
Meteor.subscribe("myThing");
let myThing = MyCol.findOne();
return {
myThing
};
})(App)
export default AppContainer;
Since React Native apps are completely separate from your Meteor codebase, you can't meteor add
packages. For this reason, companion packages to the MeteorRN core will be published under the @meteorrn
organization.
Here are the list of official planned companion packages:
@meteorrn/ndev-mfa
: Client-side features from ndev:mfa
@meteorrn/local
: Package for storing of data locally that works seamlessly with MeteorRN by injecting data into collectionIf you have an idea for a companion package, please open an issue. If you would like to publish your own companion package, we recommend a package name with the prefix mrn-
.
For React Native >=0.60.0 use this package
For React Native <0.60.0 use react-native-meteor.
Migrating from react-native-meteor
:
MeteorListView
& MeteorComplexListView
have been removedCollectionFS
has been removedcreateContainer
has been removedconnectMeteor
) have been removedcomposeWithTracker
has been removedThe GitHub Releases Tab includes a full changelog
FAQs
Full Meteor Client for React Native
The npm package @meteorrn/core receives a total of 33 weekly downloads. As such, @meteorrn/core popularity was classified as not popular.
We found that @meteorrn/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.