Closed tim-steele closed 6 years ago
I can confirm that the path.dirname(require.main.filename) does not work when compiling in React Native. I am going to resubmit my PR with the library as it looks like it is falling into one of those other solutions.
path.dirname(require.main.filename)
with path.dirname(require.main.filename):
with app-root-path:
app-root-path
Fixed in 1.1.3
I can confirm that the
path.dirname(require.main.filename)
does not work when compiling in React Native. I am going to resubmit my PR with the library as it looks like it is falling into one of those other solutions.with![image](https://user-images.githubusercontent.com/1490225/40449590-e1581d64-5ea6-11e8-9908-6604ec705cb5.png)
path.dirname(require.main.filename)
:with![image](https://user-images.githubusercontent.com/1490225/40449501-a01c33d0-5ea6-11e8-875b-e292c73482c1.png)
app-root-path
: