Compile with:
webpack --config vendor.webpack.config.js
webpack --config app.webpack.config.jsUse with the following index.html
| const EMIT_NOTIFICATION = 'EMIT_NOTIFICATION' | |
| const HIDE_NOTIFICATION = 'HIDE_NOTIFICATION' | |
| const initialState = { | |
| maxItems: 4, | |
| dismissTimeout: 10000, // 10 seconds | |
| items: [], | |
| queue: [] | |
| } |
| const path = require('path'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const HtmlWebpackPluginConfig = new HtmlWebpackPlugin({ | |
| template: './src/index.html', | |
| filename: 'index.html', | |
| inject: 'body' | |
| }) | |
| module.exports = { | |
| entry: './src/index.js', |
Compile with:
webpack --config vendor.webpack.config.js
webpack --config app.webpack.config.jsUse with the following index.html
| import React, { Component } from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { connect } from 'react-redux'; | |
| import { StyleSheet, View, Alert } from 'react-native'; | |
| import Spinner from 'react-native-loading-spinner-overlay'; | |
| import { | |
| Container, | |
| Content, | |
| Icon, |