Coder Social home page Coder Social logo

Comments (7)

jspizziri avatar jspizziri commented on May 18, 2024 1

@charpeni my vote would just be to use a Platform check, as it seems like it should be fast to implement. Would love compatibility with web.

from react-native-url-polyfill.

pradelkai avatar pradelkai commented on May 18, 2024 1

Any updates on this?

from react-native-url-polyfill.

charpeni avatar charpeni commented on May 18, 2024 1

Hello everyone! 👋

I removed the usage of polyfillGlobal a while ago to make it compatible with React Native Web: #373. Unfortunately, it was never released. Using the current state of main should be enough to unblock you, otherwise, I'm currently working on the project and will be releasing a V2 soon with a lot of improvements, including what you all suggested.

Thanks and sorry for the delay!

from react-native-url-polyfill.

ricohumme avatar ricohumme commented on May 18, 2024

I found that this polyfill is breaking stuff when I try to create an url for a blob on web. When I removed the polyfill it all started working again.
However, I do need this polyfill for my native mobile build.
Importing this in my AppEntry dependent on the platform unfortunately is a no-go.
So I wonder if this can be done with babel or webpack or something.
Thoughts?

from react-native-url-polyfill.

Andrew0314 avatar Andrew0314 commented on May 18, 2024

@ricohumme I am having the same issue, have you figured anything out for this yet?

from react-native-url-polyfill.

ricohumme avatar ricohumme commented on May 18, 2024

My workaround now is to build web without this polyfill and and build native with the polyfill

from react-native-url-polyfill.

tlmader avatar tlmader commented on May 18, 2024

I just used a platform check to work around this. It would be better developer experience if this was automatically handled!

from react-native-url-polyfill.

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.