Comments (4)
Thanks for the feedback @wbashir and @smooJitter! Mantra is definitely on my radar.
One concern I have with integrating any external frameworks is how opinionated/complicated it may get and the additional learning it would take to get started.
For example, in a client project I'm using Redux as the data store and I've really enjoyed it - but there is definitely a learning curve associated with Redux. It's something I'm trying to weigh the pros and cons on.
Maybe the best route would be, as @smooJitter mentioned, creating a separate react-native+meteor+mantra-bolierplate
.
from react-native-meteor-boilerplate.
@wbashir that would be icing on the cake! Mantra claims to support this sort of abilities. Consider your work in this area, it would be very helpful to see at react-native+meteor+mantra-bolierplate. Especially one that uses react-native-router-flux. The mantra atom package makes for straight forward reasoning about mantra.
from react-native-meteor-boilerplate.
Hello, Mantra is actually really easy to pick up. It's nothing more than a way to organize code where actions, data fetching, and UI components are maintained separately. Two core concepts holds it together. Actions and data composed via container components are passed stateless UI components via props and injected dependancies (similar to Redux connect). For Meteor, Mantra provided a nice way around Redux, however Mantra runs into a few challenges in the case of React-Native because Meteor's Tracker, Minimongo, and Reactive-dicts are used for Local State management. These tools are now available through meteor-react-native, so it didn't take a lot to integrate the two.
The challenge however, is the approach Meteor-React-Native handles reactive data loading (@connectMeteor and getMeteorData()). There's a nice write-up that clarifies the key difference. You may find it interesting considering your recent article about Pubs/Subs versus Methods. What makes Mantra so cool, the ease of switching between React and React-native UIs.
from react-native-meteor-boilerplate.
I'm leaning towards letting people choose their own way of building out the Meteor side of things. If I tried to add that to this boilerplate I feel it may be too overwhelming for new people. In the latest major update I've referenced Mantra and the Meteor Guide to look at as ways to organize the Meteor app.
I appreciate everyone's input!
from react-native-meteor-boilerplate.
Related Issues (20)
- Permission react-native-meteor HOT 2
- Best way to change bottom tabs based on current screen? HOT 4
- Sharing code between the client and the server HOT 1
- Update Boilerplate HOT 1
- Where to hide splash screen ? HOT 2
- iOS Device build successful however DDP fails to connect HOT 2
- Failing in simulation with TransformError HOT 2
- Thoughts on new "Meteor Client Bundler" vs react-native-meteor? HOT 1
- Failed to release in iOS HOT 1
- :-) Thank you for building this, we'll be in touch soon. I appreciate it.
- Failure of App to Register
- check ddp server conection HOT 1
- Unable to resolve module react-native/Libraries/Renderer/shims/ReactNative ... HOT 8
- App crashes in Xcode HOT 3
- Issues getting Meteor data into React Native using createContainer HOT 1
- What would be the best way to change the title by passing a parameter? HOT 1
- Is it possible to implement the login to meteor from react-native without eject HOT 1
- app crashes immediately HOT 3
- Is it possible to use same code for mobile and web and what I need to do. HOT 1
- Is it possible to use this boilerplate to integrate RN to an existing Meteor App? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-meteor-boilerplate.