Code Monkey home page Code Monkey logo

Comments (13)

cpunion avatar cpunion commented on July 18, 2024 1

I reproduced the same problem, seems the reason is:

class BlurView extends Component {
  render() {
    return (
      <NativeBlurView
        {...this.props}
        style={{
          backgroundColor: 'transparent'
          ...this.props.style                            // <<--- this line
        }}
      />
    );
  }
}

When I pass a Stylesheet object, this.props.style is a number. I fixed it with:

class BlurView extends Component {
  render() {
    return (
      <NativeBlurView
        {...this.props}
        style={[
          {
            backgroundColor: 'transparent'
          },
          ...this.props.style
        ]}
      />
    );
  }
}

from react-native-blur.

natorojr avatar natorojr commented on July 18, 2024

Confirmed same error w. react-native 0.17.0 and Babel 6.

from react-native-blur.

realjamie avatar realjamie commented on July 18, 2024

+1

from react-native-blur.

pjcabrera avatar pjcabrera commented on July 18, 2024

+1

from react-native-blur.

Kureev avatar Kureev commented on July 18, 2024

It's probably my bad. I need to make a table with RN version to some-rnf-plugins matching. Latest versions relies on babel 6 and rn 0.16+. Sorry for not informing you about it

from react-native-blur.

Kureev avatar Kureev commented on July 18, 2024

Oops, missclick

from react-native-blur.

natorojr avatar natorojr commented on July 18, 2024

@Kureev Thanks for looking into it. Just wanted to reiterate that I was able to reproduce the same error with React Native 0.17.0 and Babel 6.

from react-native-blur.

tuneZola avatar tuneZola commented on July 18, 2024

+1, with Babel 5, and react native 15

from react-native-blur.

viix avatar viix commented on July 18, 2024

#40 fix the issue, just not go to npm
@Kureev maybe push to npm after test

from react-native-blur.

cpunion avatar cpunion commented on July 18, 2024

@viix Great!

+1

from react-native-blur.

Kureev avatar Kureev commented on July 18, 2024

Try 0.7.8 please

from react-native-blur.

tuneZola avatar tuneZola commented on July 18, 2024

Looks like its fixed, TX.

from react-native-blur.

natorojr avatar natorojr commented on July 18, 2024

Sorry for the delayed response. Confirmed fixed.

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.