Skip to content

Astrocoders/rn-meteor-containerize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOT NEEDED ANYMORE

This package has been merged into react-native-meteor. inProgress-team/react-native-meteor#135

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)

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published