[lint] Upgrade to Prettier v3, typescript-eslint to v6 (#23544)Why --- Prettier 3 is out. Add support for it with this linter config. **Note for reviewer:** the first commit is the one with th
[lint] Upgrade to Prettier v3, typescript-eslint to v6 (#23544)Why --- Prettier 3 is out. Add support for it with this linter config. **Note for reviewer:** the first commit is the one with the actual changes. The rest of this PR are changes to get the linter passing (mostly autofix). How --- Update eslint-config-prettier and eslint-plugin-prettier. To address deprecation warnings, also update typescript-eslint/parser and typescript-eslint/eslint-plugin. Because of an update to typescript-eslint/parser, we need to suppress deprecation warnings (documented in a comment). Regenerated test snapshots. Due to the upgraded dependencies, typecasts and optional chaining are now auto-fixable by lint. This converts warnings into autofixes. Test Plan --- `yarn test` in the linter config. Run `expotools check --all --fix-lint --no-build --no-test --no-uniformity-check` to try this config on the whole repo. --------- Co-authored-by: Expo Bot <[email protected]>
show more ...
[image][ios] Add support for assets from the Photo Library (#20700)
[eslint-config] remove `arrowParens` overwrite, reformat files (#14232)
[ncl] lazy load components and improve startup (#12503)* lazy load screens * fix up test suite * load less icons * lint fix * Update AppNavigator.js * fix tsc * Create debugging.w
[ncl] lazy load components and improve startup (#12503)* lazy load screens * fix up test suite * load less icons * lint fix * Update AppNavigator.js * fix tsc * Create debugging.web.ts * updated pods
[ncl] A bunch of improvements while testing
[NCL] Fix: `Parameter 'num' implicitly has an 'any' type.`
[expo-media-library] Fix compatibility with Android R (#12017)# Why Followup of #11647. # How Adjust expo-media-library module according to the scoped storage documentation. > **Note:**
[expo-media-library] Fix compatibility with Android R (#12017)# Why Followup of #11647. # How Adjust expo-media-library module according to the scoped storage documentation. > **Note:** Those changes were made with compatibility in mind. So not all changes are considered as a best practice on the newest Android. However, some of them may change the behavior of users app. # TODO - [x] Update docs # Test Plan (Tested on a simulator and real device with Android R) - NCL ✅ - test-suite ✅
[ios][expo-media-library] In 'getAssetInfoAsync', respect the `shouldDownloadFromNetwork` option. (#12086)# Why * While investigating behavior around the `shouldDownloadFromNetwork` option to `M
[ios][expo-media-library] In 'getAssetInfoAsync', respect the `shouldDownloadFromNetwork` option. (#12086)# Why * While investigating behavior around the `shouldDownloadFromNetwork` option to `MediaLibrary.getAssetInfoAsync`, noticed several unexpected things. * In iOS 12, there is a discrepancy between the `isNetworkAsset` field returned on video & photo assets. * For video assets, `isNetworkAsset` is a boolean, which is consistent with documentation. * For photo assets, `isNetworkAsset` is a number, which is inconsistent with documentation. * In iOS 13 & iOS 14 the `isNetworkAsset` is never returned from `MediaLibrary.getAssetInfoAsync`. * Related to this, the `allowsNetworkAccess` option is always true when fetching photos/videos, even when the `shouldDownloadFromNetwork: false` option is given. * https://docs.expo.io/versions/latest/sdk/media-library/#medialibrarygetassetinfoasyncasset-options # How * Ran `test-suite` in the `bare-expo` app, added tests to cover the behavior I was seeing. * Render asset info returned from calling `getAssetInfoAsync` with `shouldDownloadFromNetwork: false` on the `<MediaDetailsScreen/>` in the `native-component-list` app, verify that `isNetworkAsset` field is returned. # Test Plan * Ran `test-suite` in the `bare-expo` app, added tests to cover the behavior I was seeing.
[expo-media-library][ios] Add `presentPermissionsPickerAsync` (#10662)# Why Add function (see https://github.com/expo/expo/pull/9423#issuecomment-707237822) which will display prompt with permit
[expo-media-library][ios] Add `presentPermissionsPickerAsync` (#10662)# Why Add function (see https://github.com/expo/expo/pull/9423#issuecomment-707237822) which will display prompt with permitted assets. # How - added `presentLimitedLibraryPickerAsync` function - added example to NCL - added a way to check if the user changed the permitted assets # ToDo: - [x] run pod install - [x] client - [x] bare-expo # Test Plan - NCL: - bare ✅ - client ✅
[expo-permissions] Add rename `CAMERA_ROLL` to `MEDIA_LIBRARY` & add write only permission (#10643)# Why Since iOS 14, we can add write-only permission to the media library. Moreover, we want to
[expo-permissions] Add rename `CAMERA_ROLL` to `MEDIA_LIBRARY` & add write only permission (#10643)# Why Since iOS 14, we can add write-only permission to the media library. Moreover, we want to remove `CAMERA_ROLL` to `MEDIA_LIBRARY`. # How - `CAMERA_ROLL` -> `MEDIA_LIBRARY` - added `WRITE_ONLY_MEDIA_LIBRARY`: - [x] media-library - [x] permissions - [x] image-picker - updated documentation # Test Plan - NCL ✅
[ci] Add Native Component List TS + ESLint checks (#10233)# Why NCL is the main app we use to test new SDK releases. We should make sure it always works and it works well. TS and ESLint checks a
[ci] Add Native Component List TS + ESLint checks (#10233)# Why NCL is the main app we use to test new SDK releases. We should make sure it always works and it works well. TS and ESLint checks are part of this task. # How Fixed TS and ESLint errors in other PRs. Removed `--watch` from `tsc` `package.json` script. Added CI job to test if NCL ts-compiles and has no ESLint problems. # Test Plan CI should pass once we merge all the fixes.
[ncl] Fix lint warnings (#10443)# Why Let's make NCL a top-notch application, always tidy etc. # How - configured ESLint for NCL - fixed all warnings automatically - changed manually all
[ncl] Fix lint warnings (#10443)# Why Let's make NCL a top-notch application, always tidy etc. # How - configured ESLint for NCL - fixed all warnings automatically - changed manually all `React.Component<object, …` that ESLint "automatically fixed" to `<{}` as per https://github.com/expo/expo/pull/10229#discussion_r490961694 # Test Plan `yarn lint` no longer warns about warnings.
[expo-media-library] Fix permissions on iOS 14 (#10026)# Why - We can't get/create an album when the user is not granted permission to all photos. - `authorizationStatus` was deprecated & in iO
[expo-media-library] Fix permissions on iOS 14 (#10026)# Why - We can't get/create an album when the user is not granted permission to all photos. - `authorizationStatus` was deprecated & in iOS 14 beta 6 it doesn't work. Same with `requestAuthorization`. - Skip `media-library` tests when not all permissions were granted. # Test Plan - NCL ✅ - test-suite ✅ # Changelog - [fix][expo-media-library] Fix `media-library` methods failing when not all permissions were granted on iOS 14.
Migrate to react-navigation v5 (#8857)* Migrate apps/ to use react-navigation v5 * Update GeofencingScreen.tsx * Update GeofencingScreen.tsx * Updated useFocusEffect * Update MediaLibra
Migrate to react-navigation v5 (#8857)* Migrate apps/ to use react-navigation v5 * Update GeofencingScreen.tsx * Update GeofencingScreen.tsx * Updated useFocusEffect * Update MediaLibraryScreen.tsx * Update GeofencingScreen.tsx * Updated onFocus methods * Update BackgroundLocationMapScreen.tsx * Fix tab loading * Update ExpoComponents.ts * Updated Media Library * fix bare-expo routing in e2e * Update TaskManagerScreen.tsx * Improve linking configuration * Update MainNavigator.tsx * Updated prop signature * Update MainNavigator.tsx Co-authored-by: Brent Vatne <[email protected]>
[chore] Fix lint and typescript errors in NCL (#8861)* Fix lint errors * Revice web unimplemented views * Delete useDimensions.ts * Remove unused screen object properties * Convert to f
[chore] Fix lint and typescript errors in NCL (#8861)* Fix lint errors * Revice web unimplemented views * Delete useDimensions.ts * Remove unused screen object properties * Convert to functional components * Fix TypeScript errors * Fix subscription bug
[ncl] remove all usages of componentWillMount
[sdk33] fix tests and NCL for MediaLibrary
[ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219)* [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to de
[ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219)* [ncl][test-suite] Change imports to SDK 33 syntax with the codemod * [ncl][test-suite] Add new imported packages to dependencies
@bbarthec/migrate native component list to typescript (#3975)* [ncl] Migrate to TypeScript * [ncl] fix runtime on mobile devices * [ncl] Apply review suggestions