-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13900 from Expensify/neil-test-tool-gesture
Open a test tools modal with 5 taps on dev
- Loading branch information
Showing
10 changed files
with
157 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import {withOnyx} from 'react-native-onyx'; | ||
import {View} from 'react-native'; | ||
import ONYXKEYS from '../ONYXKEYS'; | ||
import Modal from './Modal'; | ||
import CONST from '../CONST'; | ||
import * as App from '../libs/actions/App'; | ||
import TestToolMenu from './TestToolMenu'; | ||
import styles from '../styles/styles'; | ||
|
||
const propTypes = { | ||
/** Whether the test tools modal is open */ | ||
isTestToolsModalOpen: PropTypes.bool, | ||
}; | ||
|
||
const defaultProps = { | ||
isTestToolsModalOpen: false, | ||
}; | ||
|
||
const TestToolsModal = props => ( | ||
<Modal | ||
isVisible={props.isTestToolsModalOpen} | ||
type={CONST.MODAL.MODAL_TYPE.CENTERED_SMALL} | ||
onClose={App.toggleTestToolsModal} | ||
> | ||
<View style={[styles.settingsPageBody, styles.p5]}> | ||
<TestToolMenu /> | ||
</View> | ||
</Modal> | ||
); | ||
|
||
TestToolsModal.propTypes = propTypes; | ||
TestToolsModal.defaultProps = defaultProps; | ||
TestToolsModal.displayName = 'TestToolsModal'; | ||
|
||
export default withOnyx({ | ||
modal: { | ||
key: ONYXKEYS.MODAL, | ||
}, | ||
isTestToolsModalOpen: { | ||
key: ONYXKEYS.IS_TEST_TOOLS_MODAL_OPEN, | ||
}, | ||
})(TestToolsModal); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,10 @@ export default { | |
minWidth: '25%', | ||
}, | ||
|
||
mnw120: { | ||
minWidth: 120, | ||
}, | ||
|
||
w50: { | ||
width: '50%', | ||
}, | ||
|