• 请不要在回答技术问题时复制粘贴 AI 生成的内容
dlyt
V2EX  ›  程序员

请教一下 RN ScrollView 左右滑动事件如何拿到 key?

  •  
  •   dlyt · Mar 7, 2017 · 4114 views
    This topic created in 3536 days ago, the information mentioned may be changed or developed.

    2 replies  •  2017-03-08 09:14:33 +08:00
    ariesjia
    ariesjia
    Mar 7, 2017
    1
    你是指 index 么? 拿 offset 自己算吧
    dlyt
    dlyt
    OP
    Mar 8, 2017
    2
    @ariesjia 恩,我后来 e.nativeEvent.contentOffset.x 算了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3862 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:42 · PVG 13:42 · LAX 21:42 · JFK 00:42
    ♥ Do have faith in what you're doing.