dabbott / javascript-playgrounds

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

Add native-base library #6

Closed jr-k closed 7 years ago

jr-k commented 8 years ago

Is it possible to add native-base library in the editor ?

dabbott commented 8 years ago

Yeah, we could definitely do that. Maybe something like.. the url params of the iframe allow a libraries array. And this could be used to fetch a js bundle.

Probably would need to make a custom build of the native base components, since it has a few native module dependencies.

dabbott commented 8 years ago

Ok, so we now can load 3rd party libraries. Will probably still need to make a special build of NativeBase without native dependencies.

If somebody does this, let's definitely include a link to the bundle in the readme.

RangerMauve commented 8 years ago

I raised an issue with NativeBase to see if they would consider integrating with react-native-web directly.

dabbott commented 8 years ago

That'd be really cool. I'd definitely enjoy using that.

dabbott commented 7 years ago

Closing. Any library bundled for browser/commonjs should work in the web player now.