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

Attempted to transition from state `RESPONDER_INACTIVE_PRESS_IN` to `RESPONDER_ACTIVE_LONG_PRESS_IN`, which is not supported.

Open samhunta opened this issue 10 years ago • 162 comments

Similar to #1693. It seems to be an issue with the Touchable component with Chrome Debugging on React Native 0.19.0.

Attempted to transition from state `RESPONDER_INACTIVE_PRESS_IN` to `RESPONDER_ACTIVE_LONG_PRESS_IN`, which is not supported.
This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled.

stack:
reactConsoleError                                 @ ExceptionsManager.js:76
console.error                                     @ YellowBox.js:49
TouchableMixin._handleLongDelay                   @ Touchable.js:575
JSTimersExecution.callbacks.(anonymous function)  @ JSTimers.js:47
JSTimersExecution.callTimer                       @ JSTimersExecution.js:69
JSTimersExecution.callTimers                      @ JSTimersExecution.js:92
__callFunction                                    @ MessageQueue.js:183
(anonymous function)                              @ MessageQueue.js:87
guard                                             @ MessageQueue.js:41
callFunctionReturnFlushedQueue                    @ MessageQueue.js:86
onmessage                                         @ debuggerWorker.js:39

The code that produces this error is from a freshly started application using a TouchHighlight component:

class App extends Component {
  constructor() {
    super()
    this.state = {
      testText: ''+Math.random()
    }
  }

  _updateTouch(e) {
    this.setState({testText: ''+Math.random()})
  }

  render() {
    return (
      <View style={styles.container}>
        <Text>
          {this.state.testText}
        </Text>
        <TouchableHighlight onPress={this._updateTouch.bind(this)}>
          <Image
            style={width: 100, height: 100}
            source={{uri: 'http://facebook.github.io/react/img/logo_og.png'}}
          />
        </TouchableHighlight>
      </View>
    );
  }
}

P.S. Is there a better way to copy a stacktrace? I'm just copying from the Chrome dev tools console

samhunta avatar Feb 08 '16 19:02 samhunta

Hey Dyscrete, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!

facebook-github-bot avatar Feb 08 '16 19:02 facebook-github-bot

I get the same error when testing on an iPhone6 (9.1)

casperin avatar Feb 09 '16 12:02 casperin

How's this issue different from #1693 ? In general, the issue seems to be the same. Can we close it and continue further investigation up there as it has more details?

grabbou avatar Apr 24 '16 12:04 grabbou

+1 I also get this problem,and It's happened frequently switch navigator

askday avatar Apr 28 '16 10:04 askday

Going to close it as @askday also put better repro in the #1693. Please reopen if OP mentioned something different.

grabbou avatar Apr 28 '16 10:04 grabbou

Same error for me. React 0.31 Chrome debug. In normal use there is no problem.

console.error: "Attempted to transition from state RESPONDER_INACTIVE_PRESS_IN to RESPONDER_ACTIVE_LONG_PRESS_IN, which is not supported. This is most likely due to Touchable.longPressDelayTimeout not being cancelled."

Object.console.error YellowBox.js:60 Constructor._handleLongDelay Touchable.js:595 JSTimersExecution.callbacks.(anonymous index.ios.bundle?platform=ios&dev=true&minify=false:8476:13 Object.callTimer JSTimersExecution.js:84 JSTimersExecution.js:119 Object.callTimers JSTimersExecution.js:119 MessageQueue.__callFunction MessageQueue.js:204 MessageQueue.js:95

radek1991 avatar Aug 22 '16 22:08 radek1991

+1

arstiefel avatar Aug 31 '16 19:08 arstiefel

+1

charlesLin avatar Sep 07 '16 09:09 charlesLin

+1

pawellewandowski avatar Sep 20 '16 07:09 pawellewandowski

+1

minhchu avatar Sep 22 '16 09:09 minhchu

:+1:

gillestasse avatar Sep 22 '16 12:09 gillestasse

👍

Jarred-Sumner avatar Sep 24 '16 21:09 Jarred-Sumner

+1

StevenKing9 avatar Oct 03 '16 09:10 StevenKing9

+1

bucketclan avatar Oct 25 '16 09:10 bucketclan

+1

myseven avatar Oct 26 '16 08:10 myseven

+1

SerzN1 avatar Nov 09 '16 13:11 SerzN1

+1

johnwei2019 avatar Nov 13 '16 07:11 johnwei2019

+1

berkaybeyaz1 avatar Nov 16 '16 19:11 berkaybeyaz1

+1

dadbob avatar Nov 16 '16 19:11 dadbob

+1

nadeermalangadan avatar Nov 19 '16 05:11 nadeermalangadan