<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: zichengbohan</title>
    <description>The latest articles on DEV Community by zichengbohan (@zichengbohan).</description>
    <link>https://dev.to/zichengbohan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F781894%2F301e2051-ce2c-462b-a235-eb479c5e85cc.png</url>
      <title>DEV Community: zichengbohan</title>
      <link>https://dev.to/zichengbohan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zichengbohan"/>
    <language>en</language>
    <item>
      <title>how to make pansponder worked with scorllView's contentView in Android platform</title>
      <dc:creator>zichengbohan</dc:creator>
      <pubDate>Tue, 28 Dec 2021 10:16:54 +0000</pubDate>
      <link>https://dev.to/zichengbohan/how-to-make-pansponder-worked-with-scorllviews-contentview-in-android-platform-5elk</link>
      <guid>https://dev.to/zichengbohan/how-to-make-pansponder-worked-with-scorllviews-contentview-in-android-platform-5elk</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const injectAnim = (Global.experGroup.hotelHighLights &amp;amp;&amp;amp; hasGuestShow) ? this.panResponder.panHandlers : {};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;
      scrollEnabled={this.state.scrollEnabled}&lt;br&gt;
        disableScrollViewPanResponder={true}&lt;br&gt;
        bounces={false}&lt;br&gt;
        nestedScrollEnabled={false}&lt;br&gt;
        overScrollMode="never"&lt;br&gt;
        style={&lt;br&gt;
          {&lt;br&gt;
            backgroundColor: 'transparent'&lt;br&gt;
          }&lt;br&gt;
        }&lt;br&gt;
        onMoveShouldSetResponder={this.scrollViewOnMoveShouldSetResponder}&lt;br&gt;
        onTouchStart={() =&amp;gt; {&lt;br&gt;
          console.log('点击开始:');&lt;br&gt;
          this.setState({&lt;br&gt;
            scrollEnabled: true&lt;br&gt;
          })&lt;br&gt;
        }}&lt;br&gt;
      &amp;gt;&lt;br&gt;
        
        style={[&lt;br&gt;
          this.pan.getLayout(),&lt;br&gt;
          {&lt;br&gt;
            opacity: this.state.baseInfoOpacity&lt;br&gt;
          }&lt;br&gt;
        ]}&lt;br&gt;
        {...injectAnim}&lt;br&gt;
        &amp;gt;&lt;br&gt;
        &lt;br&gt;
&lt;/p&gt;

&lt;p&gt;the panResponder is work when scrollEnabled=false, but it's not work when scrollEnabled=true and call onPanResponderTerminate method&lt;br&gt;
someone will help me?&lt;/p&gt;

</description>
      <category>react</category>
      <category>android</category>
    </item>
  </channel>
</rss>
