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

is it support scrollView?

Open happyming9527 opened this issue 10 years ago • 7 comments

i hava a image view wrapping the blur view, on the top of my component.the blur effect is ok, but when i scroll the view, the blur view will twinkle.

happyming9527 avatar Jun 13 '16 14:06 happyming9527

Is there a way to reproduce it?

Kureev avatar Jun 13 '16 15:06 Kureev

Yes, i can reproduce it.When I scroll ScrollView, BlurView fuzzy position does not seem to change. Although BlurView has followed the scroll, but this will cause other common views which went to this position has become blurred.

happyming9527 avatar Jun 14 '16 02:06 happyming9527

Can you share a code snippet?

cmcewen avatar Jun 14 '16 21:06 cmcewen


<ScrollView >
  <View>
    <Image
      resizeMode={"cover"}
      source={{uri: this.state.thumb}}
      style={{width: ST.Dim.width,  height: ST.Dim.width * 411/640}}>
      <BlurView shouldRasterizeIOS={false} blurType="light" style={{flex: 1}}>
        <View style={{alignItems: 'center', marginTop: w(35), flex: 1}}>
          <TouchableOpacity onPress={
          ST.interactFunc(function() {
            global.nav.push({component: MyProfile})
          })
        }>
            <Image
              source={{uri: this.state.thumb}}
              style={[styles.thumb, {borderWidth: 1, borderColor: 'white'}]}
            />
          </TouchableOpacity>
        </View>
      </BlurView>
    </Image>
  </View>
</ScrollView>

happyming9527 avatar Jun 15 '16 01:06 happyming9527

Try moving ScrollView inside BlurView

Dielz98 avatar Aug 19 '16 09:08 Dielz98

Any updates on it? Can I close this one?

Kureev avatar Jan 06 '17 10:01 Kureev

I have this issue too. If you have a BlurView/BlurViews inside a ScrollView then it will drop frames when you scroll.

superandrew213 avatar May 11 '17 16:05 superandrew213