dabbott / javascript-playgrounds

An interactive JavaScript sandbox
https://unpkg.com/javascript-playgrounds/public/index.html
Other
1.4k stars 131 forks source link

custom npm packages in web player #24

Closed ahaubenstock closed 6 years ago

ahaubenstock commented 7 years ago

Hello!

I am having trouble getting the web player to display pages that make use of custom UI elements coming from npm packages. For example: how might I go about using something like Native Base in the web player?

Thanks!

andrespch commented 6 years ago

hey @ahaubenstock did you ever find out more about this?

ahaubenstock commented 6 years ago

Not really. I stopped trying, quit my job

On Nov 3, 2017, at 7:40 AM, Andrés Portillo notifications@github.com wrote:

hey @ahaubenstock did you ever find out more about this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

dabbott commented 6 years ago

I remember trying to get nativebase to work at some point and struggling a bit. This gist is, most RN libs have to be compiled in a form that works with https://github.com/necolas/react-native-web. If it works there, it should work here -- but you'll have to use a version that's bundled in a single file. Instructions for including modules are in the README