-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 #4774 from parasharrajat/newmarker
Fix: marker is not clickable on android
- Loading branch information
Showing
5 changed files
with
74 additions
and
16 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/pages/home/report/MarkerBadge/MarkerBadgeContainer/MarkerBadgeContainerPropTypes.js
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,11 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
const propTypes = { | ||
/** Styles to be assigned to Container */ | ||
containerStyles: PropTypes.arrayOf(PropTypes.object).isRequired, | ||
|
||
/** Rendered child component */ | ||
children: PropTypes.element.isRequired, | ||
}; | ||
|
||
export default propTypes; |
17 changes: 17 additions & 0 deletions
17
src/pages/home/report/MarkerBadge/MarkerBadgeContainer/index.android.js
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,17 @@ | ||
import React from 'react'; | ||
import {View, Animated} from 'react-native'; | ||
import styles from '../../../../../styles/styles'; | ||
import propTypes from './MarkerBadgeContainerPropTypes'; | ||
|
||
const MarkerBadgeContainer = props => ( | ||
<Animated.View style={[styles.reportMarkerBadgeWrapperAndroid, ...props.containerStyles]}> | ||
<View style={styles.reportMarkerBadgeSubWrapperAndroid}> | ||
{props.children} | ||
</View> | ||
</Animated.View> | ||
); | ||
|
||
MarkerBadgeContainer.propTypes = propTypes; | ||
MarkerBadgeContainer.displayName = 'MarkerBadgeContainer'; | ||
|
||
export default MarkerBadgeContainer; |
15 changes: 15 additions & 0 deletions
15
src/pages/home/report/MarkerBadge/MarkerBadgeContainer/index.js
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,15 @@ | ||
import React from 'react'; | ||
import {Animated} from 'react-native'; | ||
import styles from '../../../../../styles/styles'; | ||
import propTypes from './MarkerBadgeContainerPropTypes'; | ||
|
||
const MarkerBadgeContainer = props => ( | ||
<Animated.View style={[styles.reportMarkerBadgeWrapper, ...props.containerStyles]}> | ||
{props.children} | ||
</Animated.View> | ||
); | ||
|
||
MarkerBadgeContainer.propTypes = propTypes; | ||
MarkerBadgeContainer.displayName = 'MarkerBadgeContainer'; | ||
|
||
export default MarkerBadgeContainer; |
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