react-native-pulse-loader icon indicating copy to clipboard operation
react-native-pulse-loader copied to clipboard

Layout is off

Open florianbepunkt opened this issue 8 years ago • 6 comments

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?

florianbepunkt avatar Jan 24 '17 16:01 florianbepunkt

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

image

Roconda avatar Feb 05 '17 12:02 Roconda

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

jordanmkoncz avatar Feb 07 '17 03:02 jordanmkoncz

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

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

indivisable avatar Feb 17 '17 15:02 indivisable

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

mastermoo avatar Feb 17 '17 15:02 mastermoo

Same problem here, any news?

pensierinmusica avatar Aug 27 '17 23:08 pensierinmusica

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

ch3tan03 avatar Apr 22 '22 04:04 ch3tan03