Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout is off #2

Open
florianbepunkt opened this issue Jan 24, 2017 · 6 comments
Open

Layout is off #2

florianbepunkt opened this issue Jan 24, 2017 · 6 comments
Labels

Comments

@florianbepunkt
Copy link

When using this component in RN 0.39.0 inside a View the layout seems off. Please see the attached screenshot.

bildschirmfoto 2017-01-24 um 17 10 59

Also when clicking on the TouchableHighlight it throws an error

bildschirmfoto 2017-01-24 um 17 11 34

Any idea why?

@Roconda
Copy link

Roconda commented Feb 5, 2017

Same here, using at as a marker on a map.

image

@mastermoo mastermoo added the bug label Feb 5, 2017
@jordanmkoncz
Copy link

Also experiencing both of these issues when I tried using this project.

@indivisable
Copy link

I temporarily fixed the layout by adjusting this code in Pulse.js:

marginLeft: -pulseMaxSize-12,
marginTop: -pulseMaxSize/2,

@mastermoo
Copy link
Owner

Happy to merge a PR, if it fixes the issue for everyone

@pensierinmusica
Copy link

Same problem here, any news?

@ch3tan03
Copy link

Modify pulse.js
import React, { Component } from 'react';
import { View, StyleSheet, Animated, Easing, Dimensions,Platform } from 'react-native';
import { initialWindowMetrics } from 'react-native-safe-area-context'

const { width } = Dimensions.get('window');
const height = Platform.OS === 'ios' ? initialWindowMetrics.frame.height - initialWindowMetrics.insets.top - initialWindowMetrics.insets.bottom : initialWindowMetrics.frame.height

also make sure you are using same height width in other custom components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants