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

ignite-dev-screens

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ignite-dev-screens - npm Package Compare versions

Comparing version 2.0.0-beta.6 to 2.0.0-beta.7

2

package.json
{
"name": "ignite-dev-screens",
"version": "2.0.0-beta.6",
"version": "2.0.0-beta.7",
"license": "MIT",

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

@@ -19,4 +19,7 @@ const sourceFolder = `${process.cwd()}/node_modules/ignite-dev-screens/templates`

// Set Examples to "classic" in Ignite config
context.ignite.setIgniteConfig('examples', 'classic')
ignite.setIgniteConfig('examples', 'classic')
// Set Android Permission for NetInfo module
ignite.addAndroidPermission('ACCESS_NETWORK_STATE')
// dev screens use react-navigation

@@ -29,3 +32,3 @@ await ignite.addModule('react-navigation')

// Set showDevScreens to __DEV__
context.ignite.setDebugConfig('showDevScreens', '__DEV__', true)
ignite.setDebugConfig('showDevScreens', '__DEV__', true)

@@ -55,6 +58,8 @@ // Insert a function that renders the dev screens as part of the JSX in the navigation

// Set Examples to "false" in Ignite config
context.ignite.removeIgniteConfig('examples')
ignite.removeIgniteConfig('examples')
// remove the npm module - probably should ask user here
await ignite.removeModule('react-navigation')
// Set Android Permission for NetInfo module
ignite.removeAndroidPermission('ACCESS_NETWORK_STATE')

@@ -65,3 +70,3 @@ // Delete screens from containers folder

// Remove App/Config/DebugSettings.js showDevScreens value
context.ignite.removeDebugConfig('showDevScreens')
ignite.removeDebugConfig('showDevScreens')

@@ -68,0 +73,0 @@ // Remove function and call from navigation

@@ -16,3 +16,3 @@ import React from 'react'

toggleModal = () => {
this.setState({showModal: !this.state.showModal})
this.setState({ showModal: !this.state.showModal })
}

@@ -27,4 +27,6 @@

</RoundedButton>
<Modal visible={this.state.showModal} >
<PresentationScreen screenProps={{toggle: this.toggleModal}} />
<Modal
visible={this.state.showModal}
onRequestClose={this.toggleModal}>
<PresentationScreen screenProps={{ toggle: this.toggleModal }} />
</Modal>

@@ -34,5 +36,5 @@ </View>

} else {
return (<View />)
return <View />
}
}
}
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