Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-wolmo-bootstrap-rn

Package Overview
Dependencies
Maintainers
9
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-wolmo-bootstrap-rn - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

7

generators/app/tasks/installDependencies.js

@@ -11,2 +11,3 @@ const latestSemver = require('latest-semver');

'react-navigation',
'react-navigation-redux-helpers',
'react-redux',

@@ -79,5 +80,5 @@ 'reactotron-apisauce',

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

@@ -84,0 +85,0 @@ });

@@ -1,14 +0,42 @@

import React from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BackHandler } from 'react-native';
import { connect } from 'react-redux';
import { addNavigationHelpers } from 'react-navigation';
import PropTypes from 'prop-types';
import { NavigationActions, addNavigationHelpers } from 'react-navigation';
import { createReduxBoundAddListener } from 'react-navigation-redux-helpers';
import { ROOT } from '../../../constants/platform';
import Navigator from '../../screens';
const AppNavigator = props => {
const { dispatch, nav, ...navigatorProps } = props;
return <Navigator {...navigatorProps} navigation={addNavigationHelpers({ dispatch, state: nav })} />;
};
class AppNavigator extends Component {
componentDidMount() {
BackHandler.addEventListener('hardwareBackPress', this.onBackPress);
}
componentWillUnmount() {
BackHandler.removeEventListener('hardwareBackPress', this.onBackPress);
}
onBackPress = () => {
const { dispatch, nav } = this.props;
if (nav.index === 0) {
return false;
}
dispatch(NavigationActions.back());
return true;
};
addListener = createReduxBoundAddListener(ROOT);
render() {
const { dispatch, nav, ...navigatorProps } = this.props;
return (
<Navigator
{...navigatorProps}
navigation={addNavigationHelpers({ dispatch, state: nav, addListener: this.addListener })}
/>
);
}
}
AppNavigator.propTypes = {
// TODO: Declare a correct PropType for nav
nav: PropTypes.any // eslint-disable-line react/forbid-prop-types

@@ -15,0 +43,0 @@ };

import { Platform, StatusBar, Dimensions } from 'react-native';
export const ROOT = 'root';
export const isAndroid = Platform.OS === 'android';

@@ -4,0 +6,0 @@ export const isIos = Platform.OS === 'ios';

{
"name": "generator-wolmo-bootstrap-rn",
"version": "0.3.0",
"version": "0.3.1",
"description": "",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc