rn-meteor-containerize

1.0.1 • Public • Published

rn-meteor-containerize

A React Container component designed specially for react-native-meteor

Why?

Containerize focus on performance, that's why it hooks up with InteractionManager to ensure that your subscriptions will just be executed when the JS thread isn't dealing with other heavy tasks. That will ensure smooth transations for Navigator.

Example

The syntax is made to be the same as the one of react-komposer.

import composeWithtracker from 'rn-meteor-containerize'
 
function composer(props, onData){
  const handle = Meteor.subscribe('items') 
 
  if(handle.ready()){
    onData(null, {
      items: Meteor.collections('items').find({}),
    });  
  }
}
 
export default composeWithTracker(composer)

Package Sidebar

Install

npm i rn-meteor-containerize

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • gabrielrubens