I was thinking about passing my directly to my main index.js file
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
I mean I know, We can always do something like this in our App.js
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import {Provider} from 'react-redux';
import Store from "./src/store.js"
import Something from './src/container/Something.js';
export default class App extends React.Component {
render() {
return (
<Provider store={Store}>
<Something
/>
</Provider>
);
}
}
[Question:] But I was thinking If we can do it in Index.js and If yes then how?