monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

Monaco in Mobile

Open hemantasapkota opened this issue 5 years ago • 7 comments

Hi team,

My name is Hemanta, and for the past year I've been working on a project that integrates monaco in react native. The integration was a huge success.

Apps: https://itunes.apple.com/us/app/code-playground/id1452106609 ~~https://itunes.apple.com/us/app/go-playground/id1437518275~~

I had to make several fixes to the editor to make it work decently inside react native, mostly around scroll view and mouse column computation. I've will submit a PR soon.

How can I attribute the use of the editor in my apps ?

Thanks

hemantasapkota avatar Mar 14 '19 03:03 hemantasapkota

This sounds really interesting. I'd love to see this. Do you still plan to submit a PR?

donaldpipowitch avatar Apr 12 '19 10:04 donaldpipowitch

This sounds great, I hope to use monaco on the mobile side.

k644606347 avatar May 08 '19 13:05 k644606347

@hemantasapkota I'd be very interested to see any changes you've made. Also looking for React Native integration. Do you have a fork of the repo somewhere?

jdmunro avatar Jul 10 '19 07:07 jdmunro

This would be interesting!

Especially in case it would also handle the ability to long-press -> paste in mobile browsers like Android Chrome!

karlhorky avatar Jun 21 '20 14:06 karlhorky

@hemantasapkota what is the chances you could share the changes you made to make this mobile friendly?

Steve-Mcl avatar Dec 17 '20 15:12 Steve-Mcl

@hemantasapkota Our team is also interested in allowing users to edit code in a RN app. It's been a bit since you originally posted, is the solution you have still working well for you? Anything you're able to share to get others able to use Monaco w/ RN would be awesome!

Jackman3005 avatar Aug 01 '22 01:08 Jackman3005

Someone on our team knew @hemantasapkota IRL and reached out (small world!). The feedback we got was that Monaco has issues on mobile that make it a poor choice right now. This blog goes into details on that and suggests using CodeMirror which we've now implemented for ourselves and things are working okay for the moment, still not using many of the advanced features yet though.

Not trying to stop people from using Monaco (sorry maintainers!), just want to help people move forward with their goals, hopefully this helps.

Jackman3005 avatar Aug 05 '22 04:08 Jackman3005