Menu

Your code is clean, your libraries aren't: 29 popular React Native libraries still call APIs removed in 0.85 and 0.87
📰

Your code is clean, your libraries aren't: 29 popular React Native libraries still call APIs removed in 0.85 and 0.87

DEV Community: reactnative·alican akyol·about 22 hours ago
#sccEaiMq
#devtoreactnative#devto#dev#react#native
Reading 0:00
15s threshold

You searched your code for InteractionManager , replaced every call, and the upgrade to React Native 0.87 still crashes. The call is in node_modules .

React Native removed two widely used JavaScript APIs in the last few releases:

0.85: StyleSheet.absoluteFillObject ( release post )

0.87: InteractionManager , and StatusBar 's background colour and translucency ( release post )

Renaming them in your own code is a five-minute job. The libraries you depend on are a different story, so I checked them.

How I checked

I took every dependency used by at least two of 900 open-source React Native and Expo apps from GitHub: 1,442 libraries. For each, I downloaded the latest published package from npm (nothing installed or run) and searched its shipped JavaScript for the removed APIs, comments stripped.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.