* Renamed layouts/root_layout to components/root * Added KeyboardLayout to automatically use a KeyboardAvoidingView when necessary
25 lines
660 B
JavaScript
25 lines
660 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import 'harmony-reflect';
|
|
import React from 'react';
|
|
import {Provider} from 'react-redux';
|
|
|
|
import Root from 'app/components/root';
|
|
import initialState from 'app/initial_state';
|
|
import Router from 'app/navigation/router';
|
|
import configureStore from 'app/store';
|
|
|
|
const store = configureStore(initialState);
|
|
|
|
export default class Mattermost extends React.Component {
|
|
render() {
|
|
return (
|
|
<Provider store={store}>
|
|
<Root>
|
|
<Router/>
|
|
</Root>
|
|
</Provider>
|
|
);
|
|
}
|
|
}
|