formidable-react-native-app-boilerplate icon indicating copy to clipboard operation
formidable-react-native-app-boilerplate copied to clipboard

Just a little help for newbies

Open srlopez opened this issue 10 years ago • 5 comments

For beginners in the philosophy of react and redux (me), and syntax es6 all together, it is a bit difficult to understand this model of boilerplate, but I feel that is very complete and intelligent. Can you add a couple of more scenes (pages?) to understand how routing works, and how the store is passed between scenes.

That would be a big help. Thanks in advance

srlopez avatar Feb 11 '16 10:02 srlopez

This repo needs an update to latest RN standards, but would you prefer a video screencast on how to us e this? As opposed to adding more boilerplate?

kenwheeler avatar Feb 11 '16 12:02 kenwheeler

Thanks For newbies video and boilerplate updated, i am for the old school (52 years old) and still prefer read code on paper! Where is the video?

Thanks for your quick answer

srlopez avatar Feb 11 '16 17:02 srlopez

I am actually running into the same problem. I haven't really figured how to fire off a new scene or create a route with this boilerplate.

mccjul avatar Apr 14 '16 20:04 mccjul

HI @mccjul. I have made a test starting with this boilerplate. Main changes are a RootComponent like this:

const store = configureStore();
const AppContainer = connectComponent(App);

//Root
export default class RootComponent extends Component {
  render () {
    return (
      <Provider store={store}>
        <AppContainer />
      </Provider>
    )
  }
}

Note the inside App is a container for the App component, so all Redux Store is avalable to all the pages.

The code is in here In this repo rntest, with some more test.

srlopez avatar Apr 16 '16 08:04 srlopez

@srlopez Thank you so much sir! I started reading the documentation on the navigator and I began to understand how it worked. But this is easier to read in my opinion.

mccjul avatar Apr 16 '16 18:04 mccjul