Skip to content

Instantly share code, notes, and snippets.

@BTMPL
BTMPL / component.js
Last active December 8, 2018 15:15 — forked from Ayyagaries/component.js
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,
@BTMPL
BTMPL / Build.md
Created September 20, 2017 12:46 — forked from Eoksni/Build.md
Minimal Webpack DllPlugin example

Compile with:

webpack --config vendor.webpack.config.js
webpack --config app.webpack.config.js

Use with the following index.html

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',
const EMIT_NOTIFICATION = 'EMIT_NOTIFICATION'
const HIDE_NOTIFICATION = 'HIDE_NOTIFICATION'
const initialState = {
maxItems: 4,
dismissTimeout: 10000, // 10 seconds
items: [],
queue: []
}