bugsnag / bugsnag-expo

MIT License
11 stars 5 forks source link

Update expo-cli #131

Open KBirzins opened 1 year ago

KBirzins commented 1 year ago

Goal

By default when creating a new Expo project with the typescript template, the entry point file is App.tsx not App.ts, so the script to import and start Bugsnag fails. This update checks also for the App.tsx file and inserts if found.

Design

Reused existing approach, only extended it

Changeset

Extended existing functionality in insert.js, adding extra check for App.tsx file.

Testing

Added tests for App.tsx extension.

matthewjhowells commented 1 year ago

Hi @KBirzins, Thanks for raising this. We'll look to get this merged in due course.