question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic require prevents use in React Native

See original GitHub issue

React Native’s packager can’t bundle apps using dynamic require

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
simlrhcommented, Nov 20, 2020

If you need this I’d suggest forking this repo, making the appropriate changes (https://github.com/sqmk/huejay/pull/77/files worked in 2017, make changes as necessary), and pointing to your repo in package.json dependencies.

Don’t depend on the above fork as I’m not guaranteeing it’ll stay there

1reaction
zachwintercommented, Mar 7, 2019

Any updates on this? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native - Image Require Module using Dynamic Names
Open android/app/src/main/assets folder from your App.js or index. · Make a folder named images or any NAME of your choice inside assets ,...
Read more >
Code-Splitting - React
The React.lazy function lets you render a dynamic import as a regular component. Before: import OtherComponent from '.
Read more >
Module Methods - webpack
require.ensure() is specific to webpack and superseded by import() . ... Split out the given dependencies to a separate bundle that will be...
Read more >
React Native Navigation: Tutorial with examples
React Navigation is written in JavaScript and does not directly use the native navigation APIs on iOS and Android. Rather, it recreates some ......
Read more >
eslint-plugin-import - npm
Start using eslint-plugin-import in your project by running `npm i ... require() calls with expressions ( no-dynamic-require ); Prevent ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found