
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@ajaybhatia/react-native-meteor-redux
Advanced tools
This package uses redux and redux-persist behind the scenes to maintain offline versions of your meteor data (compatible with react-native-meteor).
npm install @ajaybhatia/react-native-meteor-redux
import MeteorOffline from '@ajaybhatia/react-native-meteor-redux';
// initialize a MeteorOffline instance with options, currently just takes debounce
// Do this at/near the top level of your app
const GroundedMeteor = new MeteorOffline({debounce: 1000});
// Now you can access MeteorStore as a redux store throughout your app.
export {GroundedMeteor};
import {GroundedMeteor} from '../index';
import Meteor, {createContainer} from '@ajaybhatia/react-native-meteor';
const component = (props) => {
const {docs} = props;
return (
<View>
{
docs.map((doc) => {
<Text>{doc.title}, </Text>
});
}
</View>
)
}
export createContainer((props) => {
// MeteorOffline.subscribe takes an extra first parameter, uniqueSubscriptionName
// The unique name allows you to have multiple subscriptions to the same publication
// Collections are synchronized based on the uniqueSubscriptionName
const sub = GroundedMeteor.subscribe('getUsersById', 'users/id', {userIds: [...]}, () => {
console.log('callback');
});
// MeteorOffline.collection works as normal, but we pass the unique subscription name so that behind the scenes it will synchronize your collection
return {
docs: GroundedMeteor.collection('docs', 'getUsersById').find({}),
};
}, component)
Execute the following commands:
cd example/RNApp && npm i
cd ../MeteorApp && meteor
cd ../RNApp && react-native run-ios
# or
cd ../RNApp && react-native run-android
If you get .babelrc errors, try running this in the RNApp directory
./node_modules/react-native/packager/packager.sh start --reset-cache
FAQs
Link react-native-meteor to redux
We found that @ajaybhatia/react-native-meteor-redux 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.

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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.