generator-wolmo-bootstrap-rn
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -21,2 +21,3 @@ // BASE PATHS | ||
module.exports.SCREENS = `${module.exports.APP_PATH}/screens.js`; | ||
module.exports.APP_I18N = `${module.exports.APP_PATH}/i18n.js`; | ||
@@ -130,2 +131,3 @@ // SCREENS - HOME | ||
module.exports.I18N_CONFIG = `${module.exports.CONFIG_PATH}/i18n.js`; | ||
module.exports.NAVIGATION_CONFIG = `${module.exports.CONFIG_PATH}/navigation.js`; | ||
@@ -132,0 +134,0 @@ // CONSTANTS |
@@ -41,3 +41,5 @@ const { copyFile, copyTemplateFile } = require('../../utils'); | ||
APP, | ||
SCREENS | ||
SCREENS, | ||
NAVIGATION_CONFIG, | ||
APP_I18N | ||
} = require('../../files'); | ||
@@ -80,3 +82,13 @@ | ||
const TEMPLATE_FILES = [README, REDUX_STORE, ROUTES_CONSTANTS, REACTOTRON_CONFIG, INDEX, APP, SCREENS]; | ||
const TEMPLATE_FILES = [ | ||
README, | ||
REDUX_STORE, | ||
ROUTES_CONSTANTS, | ||
REACTOTRON_CONFIG, | ||
INDEX, | ||
APP, | ||
SCREENS, | ||
NAVIGATION_CONFIG, | ||
APP_I18N | ||
]; | ||
@@ -83,0 +95,0 @@ module.exports = function baseFilesTemplate() { |
@@ -79,5 +79,5 @@ const latestSemver = require('latest-semver'); | ||
successMessage: `${dev ? 'Dev dependencies' : 'Dependencies'} ready!`, | ||
failureMessage: `${dev | ||
? 'Dev dependencies' | ||
: 'Dependencies'} installation failed. Turn verbose mode on for detailed logging`, | ||
failureMessage: `${ | ||
dev ? 'Dev dependencies' : 'Dependencies' | ||
} installation failed. Turn verbose mode on for detailed logging`, | ||
context: options | ||
@@ -100,2 +100,3 @@ }); | ||
DEPENDENCIES.push('redux-beacon'); | ||
DEPENDENCIES.push('@redux-beacon/react-native-google-analytics'); | ||
} | ||
@@ -102,0 +103,0 @@ |
import Config from 'react-native-config'; | ||
import { NavigationActions } from 'react-navigation'; | ||
import { GoogleAnalyticsTracker } from 'react-native-google-analytics-bridge'; | ||
import { GoogleAnalytics } from 'redux-beacon/targets/react-native'; | ||
import GoogleAnalytics, { trackEvent } from '@redux-beacon/react-native-google-analytics'; | ||
import { createMiddleware } from 'redux-beacon'; | ||
@@ -17,6 +17,6 @@ | ||
const pageView = (action, prevState) => ({ | ||
const pageView = trackEvent((action, prevState) => ({ | ||
hitType: 'pageview', | ||
page: getCurrentRouteName(prevState.nav) | ||
}); | ||
})); | ||
@@ -23,0 +23,0 @@ const eventsMap = { |
{ | ||
"name": "generator-wolmo-bootstrap-rn", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
162486
109
2394