[HELP] TurfJs breaking React-Native 0.50+ through name property
See original GitHub issueThe library turf-jsts is trying to make the prop name configurable, but React-Native 0.50 crash when it tries to do it on android
. The problem is at the turf-jsts.js line 3474
.
My solution was convert the staticAccesorrs equal to an empty object, but I know that can create conflicts in the future, so I want to know more about this issue.
line 3474
var staticAccessors = { };line 3479
// staticAccessors.name.get = function () { return ‘IndexOutOfBoundsException’ };
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Advanced geospatial analysis - Turf.js
Takes one or more features and calculates the centroid using the mean of all vertices. ... of polygon features, filtered by an optional...
Read more >Attempting to a configurable attribute of a ... - Stack Overflow
I have an issue with @turf/turf the last version, in my react native app. "react-native": "0.58.0",. "@turf/turf": "^5.1.6".
Read more >Licenses - Ecolands
Remap sequential sourcemaps through transformations to point at the original source code ... Helper function to change the property 'name' of every function....
Read more >Analyze data with Turf.js and Mapbox GL JS | Help
Using Turf.js, add spatial analysis to our map to solve problems. ... "properties": { "Name": "VA Medical Center -- Leestown Division", "Address": "2250 ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Jose4gg I’ve changed the
IndexOutOfBoundsException
back to ES5. (https://github.com/DenisCarriere/turf-jsts/commit/ece9f6d68c2029cfba829f26e0ba7628c4e690da) and patchedturf-jsts
, maybe that will do the trick.Instead of using
@turf/turf
in your app, why don’t you use the specific modules? You’re bundle size will be a lot smaller and you’ll have a lot more control if you use the ES6 module syntax when you’re bundling your distributed release.Closing this issue for now, feel free to open if the issue persists.
I don’t have a react-native dev setup at the moment, the staticAccessors code referenced in the original ticket is no longer present in turf-jsts code and the original filer claims this had been fixed for them. If someone can reproduce this on a 6.x or later turf can you please reopen this ticket and @ me? Thanks!