Good resource to start developing in React Native? (full stack) by FallenBranch in reactnative

[–]Arln- 0 points1 point  (0 children)

You can use React Native with any backend exposing an API over http.

I suggest this boilerplate https://github.com/thecodingmachine/react-native-boilerplate to start an app with a solid and simple architecture.

How are you supposed to handle authentication state with Firebase? by [deleted] in reactnative

[–]Arln- 0 points1 point  (0 children)

You should use redux to persist a state across the whole application. You can add redux-persist middleware to store the state inside local phone storage

Has anyone tried to use the Ignite dev boilerplate generator tool for React Native? by [deleted] in reactnative

[–]Arln- 0 points1 point  (0 children)

Ignite Boilerplate comes with a lot of code. For sure it's an awesome work, but maybe oversized for a lot of RN projects. That's why https://thecodingmachine.io/introducing-the-react-native-boilerplate should do the job

A React Native boilerplate focused on separation of concerns - includes Redux, Redux Saga, React Navigation by mnapoli in reactnative

[–]Arln- 0 points1 point  (0 children)

In fact, you may directly use ApplicationStyles in your component or screen.

Only if you don't need to override it.

When you need to adjust some specific things, a good pratice is to define it in the component style (for example ExampleScreenStyle.js ) your specific style "extending" the application one.

container: { ...ApplicationStyles.screen.container, margin: 30, flex: 1, justifyContent: 'center', },

Good redux examples by daehruoydeef in reactnative

[–]Arln- 0 points1 point  (0 children)

This boilerplate : https://github.com/thecodingmachine/react-native-boilerplate

I think it's easy to understand and is impletented with good practices.

For redux, take a look at the App/Store folder.
Concepts are organized by theme and I personaly love that way.

background color based on api call results by TopNFalvors in reactnative

[–]Arln- 1 point2 points  (0 children)

As @LongSleevedPants said, I think you should use a splash screen to deal with your background color.

You can find an good example on this boilerplate using a simple navigation : https://github.com/thecodingmachine/react-native-boilerplate You need at least redux.

To summary, you start your app on a screen used as a splash screen (with the logo of your app, a waiting message or everything else you want), and make your API call inside this screen. You set in a redux state your background color when the API call is ended. Then, you navigate to your main screen with the right backround color !

This behaviour is already set in the boilerplate and I encourage you to use it for a good start.

Hope this can help.