
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@ajaybhatia/react-native-meteor
Advanced tools
A set of packages allowing you to connect your React Native app to your Meteor server, and take advantage of Meteor-specific features like accounts, reactive data trackers, etc.
If you're new to React Native, you can view a guide to using React Native with Meteor on the Official Meteor Guide
npm install --save @ajaybhatia/react-native-meteor@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 });
If you are using the AsyncStorage API yourself, its important that you use the same version that MeteorRN is using, or issues could be caused due to the conflicting versions. Make sure you are using the same AsyncStorage you pass into Meteor (or @react-native-community/async-storage if you aren't passing anything), or you can use MeteorRN's package interface.
import Meteor, { Mongo, withTracker } from '@ajaybhatia/react-native-meteor';
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;
There are a few official companion packages available to add new features. Some packages provide a polyfill for Atmosphere packages, others simplify your app's integration with Native features (like local data storage).
Beta Packages:
@jaybhatia/ndev-mfa: Package that allows your RN app to work with meteor/ndev:mfa@jaybhatia/local: Package for storing of data locally that works seamlessly with MeteorRN by injecting data into a local minimongo collectionPlanned/Upcoming Packages:
@jaybhatia/queued-calls: Package that allows you to queue Meteor calls that will be performed when internet/server is availableIf 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 removedTo ensure that MeteorRN companion packages use the same versions of external packages like AsyncStorage as the core, @ajaybhatia/react-native-meteor provides a package interface, where companion packages can access certain packages. Currently package interface returns an object with the following properties:
import Meteor from '@ajaybhatia/react-native-meteor';
const {AsyncStorage} = Meteor.packageInterface();
FAQs
Full Meteor Client for React Native
We found that @ajaybhatia/react-native-meteor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.