Skip to content

Commit

Permalink
Refactor name of a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonwah committed Jan 2, 2019
1 parent d46dbc9 commit 70ec8bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/DefaultPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const slideOffsetYToTranslatePixelMapping = {
outputRange: [-150, 0]
};

const horizontalOffset = 8; // margin from left/right
const HORIZONTAL_MARGIN = 8; // left/right margin to screen edge

const getAnimatedContainerStyle = ({containerSlideOffsetY, containerDragOffsetY, containerScale}) => {
// Map 0-1 value to translateY value
Expand Down Expand Up @@ -247,9 +247,9 @@ const styles = StyleSheet.create({
popupContainer: {
position: 'absolute',
minHeight: 86,
width: deviceWidth - (horizontalOffset * 2),
left: horizontalOffset,
right: horizontalOffset,
width: deviceWidth - (HORIZONTAL_MARGIN * 2),
left: HORIZONTAL_MARGIN,
right: HORIZONTAL_MARGIN,
top: CONTAINER_MARGIN_TOP,
backgroundColor: 'white', // TEMP
borderRadius: 12,
Expand Down

0 comments on commit 70ec8bc

Please sign in to comment.