ignite-dev-screens
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0-beta.7
{ | ||
"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 /> | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
776328
1164