GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TouchableOpacity with transform and absolute position · Issue #28826 · react/react-native

TouchableOpacity with transform and absolute position #28826

New issue
Copy link
New issue
Copy link
Closed
Closed
TouchableOpacity with transform and absolute position#28826
Copy link
Labels
Component: TouchableOpacityNeeds: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.

Description

@Skizu
Skizu
opened on May 4, 2020
Issue body actions

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

When using a style such as { position: 'absolute', transform: [{ scale: -1 }] } the onPress does not always get fired, and onPressOut gets fired whilst you are still pressed down.

React Native version:

React Native Environment Info:
System:
OS: macOS 10.15.4
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 22.19 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.0 - /var/folders/hb/7rnt8tq10n7gsrb32sqldxnw0000gn/T/yarn--1588632900439-0.14099588561658694/node
Yarn: 1.16.0 - /var/folders/hb/7rnt8tq10n7gsrb32sqldxnw0000gn/T/yarn--1588632900439-0.14099588561658694/yarn
npm: 6.9.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 26, 27, 28, 29
Build Tools: 27.0.3, 28.0.3
System Images: android-21 | Google APIs Intel x86 Atom_64, android-22 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-24 | Google APIs Intel x86 Atom_64, android-26 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-R | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.59.10 => 0.59.10
npmGlobalPackages:
react-native-cli: 2.0.1

Steps To Reproduce

  1. Press TouchableOpacity
  2. onPress not called.

Expected Results

Describe what you expected to happen.

Snack, code example, screenshot, or link to a repository:

https://snack.expo.io/iEjujCi!6

renderButton: function() {
  return (
    <TouchableOpacity
      onPress={this._onPressButton}
      style={{ transform: [{ scale: -1 }], position: 'absolute' }}
    >
      <Image
        style={styles.button}
        source={require('./myButton.png')}
      />
    </TouchableOpacity>
  );
},

Activity

  1. Skizu
    added
    Needs: Triage 🔍
    on May 4, 2020
  2. react-native-bot
    added
    Component: TouchableOpacity
    on May 4, 2020
  3. Skizu commented on May 4, 2020

    @Skizu
    Skizu
    on May 4, 2020
    Author
    More actions

    It does not appear position: 'absolute' is needed, scale: -1 seems to be enough some of the time.

  4. stale commented on Aug 3, 2020

    @stale
    staleBot
    on Aug 3, 2020
    More actions

    Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

  5. stale
    added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Aug 3, 2020
  6. stale commented on Aug 10, 2020

    @stale
    staleBot
    on Aug 10, 2020
    More actions

    Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

  7. stale
    closed this as completedon Aug 10, 2020
  8. react
    locked as resolved and limited conversation to collaborators on Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: TouchableOpacityNeeds: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.