Closed fakenickels closed 6 years ago
this is awesome, we didn't know how to make it work. Thank you!
can you send the PR with this?
Oh, thank you for this contribution! Didn't know this ever existed.
CC: @wokalski might be worth PR example to React Native bindings too.
closed by #87
once again thank you @grsabreu
The current assets importing in RRN were making our project crash in the simulator then we realized that it is because of the way the lib is handling the outputs.
Here we decided to move to always use the
in-source
build config inbsconfig.json
to make easier to do relative asset imports.When using the default
lib/js
as output it is needed to really think hard to require the asset because you need to get outside./lib/js
until reaching again the folder in./src
.So instead of doing this in here
would be just
Much easier to do! Would like to point also that this requires the package user to also use in-build builds.
What do you guys think? We can make a PR changing it