Hello everyone there. I’m writing a single-site app for discourse using expo now. Here’s my source code. You can think of it as a discourse app starter: everyone can create their own app for any discourse site they want.
The app can only view the latest 30 topics and their first 30 replies right now, but I’ll add the infinite scroll feature soon after.
Besides, the app would minimize the use of WebView to improve performance. Now we have 2 screens using webview:
- The login screen. Users can log in or sign up here. After they finished the procedure, the injected script would get the User API Key from the page and save it.
- The markdown editor screen, as I couldn’t find a good enough markdown editor in react-native. I used vditor as the markdown editor in my app.
Here’re some preview of it. (some sensitive information is removed from the pictures)
I would try to reduce texts in my app before i18n support was added, so that everyone can use it without learning Chinese .