Fixed 2,500 TS errors / Got a share extension to work🔥
![Fixed 2,500 TS errors / Got a share extension to work🔥](/content/images/size/w1200/2023/06/maxresdefault.jpg)
Hey, what's up? It's Takuya here. I made great progress on both the desktop and mobile apps of Inkdrop.
🔥 Desktop: Fixed 2,500 TypeScript errors
The desktop app is in the process of migration from FlowJS to TypeScript and that's almost done now. It was over 2,500 errors when I started working on it.
![](https://www.devas.life/content/images/2023/06/image-5.png)
Now, there are only 36 errors, which are trivial to fix.
![](https://www.devas.life/content/images/2023/06/image-6.png)
The app is currently not able to run yet since there are many breaking changes as I've upgraded many dependencies. But the progress is great so far!
🚀 Mobile: Got a share extension to work
I've been working on supporting sharing a link to Inkdrop from other apps. Last week, I looked into an open source React Native project to learn how to add a shere extension support on iOS. Then, I've managed to get my share extension to work.
![](https://www.devas.life/content/images/2023/06/image-7.png)
I'd like to share how to accomplish that here.
Create a new target for the share extension
I followed the following blog post on how to configure a share extension:
![](https://blog.mallow-tech.com/wp-content/uploads/2022/09/omni-channel-technology-online-retail-business-1024x651.jpg)
Add an entrypoint for the share extension to React Native
In your index.js
, you can register a component for the extension like so: