Code Monkey home page Code Monkey logo

Comments (12)

alvaromb avatar alvaromb commented on August 17, 2024 1

Here's an screenshot with the issue
screen shot 2015-09-25 at 16 26 23

from react-native-blur.

olivierlesnicki avatar olivierlesnicki commented on August 17, 2024

Seem I can make it work if I specify a backgroundColor in the style.

from react-native-blur.

Kureev avatar Kureev commented on August 17, 2024

Can you tell us more about it? Maybe it's worth to add to README

from react-native-blur.

alvaromb avatar alvaromb commented on August 17, 2024

It's working perfectly here under iOS 9. Must be something with your code, if you post it maybe we could help.

screen shot 2015-09-23 at 18 24 38

from react-native-blur.

alvaromb avatar alvaromb commented on August 17, 2024

@olivierlesnicki I've just experienced this error in all platforms due to setting a backgroundColor prop in the parent <ListView /> component that wraps the cell that has the <BlurView />. It might be due how React Native blends views when rendering, IDK.

@Kureev if you want I can put an example reproducing this issue this weekend.

from react-native-blur.

Kureev avatar Kureev commented on August 17, 2024

Yeah, it's definitely about the RN itself. I think that example is not needed if @olivierlesnicki can confirm that he experience exactly this issue (in this case I don't have that much ideas how to fix it either remove background color property from the parent ).

@brentvatne mb you have any ideas? Otherwise I gonna close it.

from react-native-blur.

olivierlesnicki avatar olivierlesnicki commented on August 17, 2024

@Kureev hard to replicate. In my case I have a large number of nested views, and I'm unable to extract the combination that is causing the issue. But I'm not using ListViews

from react-native-blur.

alvaromb avatar alvaromb commented on August 17, 2024

Probably is not an issue with ListView but with how RN renders the view tree. It must be blending views to improve performance so the blurred view gets squashed into another super view.

Enviado desde mi iPhone

El 27 sept 2015, a las 8:51, Olivier Lesnicki [email protected] escribió:

@Kureev hard to replicate. In my case I have a large number of nested views, and I'm unable to extract the combination that is causing the issue. But I'm not using ListViews


Reply to this email directly or view it on GitHub.

from react-native-blur.

Kureev avatar Kureev commented on August 17, 2024

So, any updates so far?

from react-native-blur.

holmesal avatar holmesal commented on August 17, 2024

I had this problem as well:

<App>    <--- backgroundColor: 'something-solid'
  (many nested components)
    <BlurView>    <--- incorrectly has solid background

Setting

backgroundColor: 'transparent'

on the (immediate) parent of <BlurView> fixed the issue for me.

EDIT - just noticed that while the above causes the blur to display properly, children of <BlurView> are still rendering incorrectly - for example, setting the color style prop on a <Text> component has no effect. If I remove the <BlurView>, the component renders as expected.

from react-native-blur.

Kureev avatar Kureev commented on August 17, 2024

Ok, I think the subject has been solved.
@holmesal Can you create an issue about styling Text element inside BlurView? (That would be awesome, if you can attach some code to it)

from react-native-blur.

viperfx avatar viperfx commented on August 17, 2024

@alvaromb Could you please post a sample of how you achieved a blurred bar with a non blurred image underneath?

from react-native-blur.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.