[linear-gradient] simplify web code (#20611)Co-authored-by: Fernando Rojo <[email protected]>
[workspace] bump and align TypeScript version (#20392)
Fix check-packages on CI broken due to enzyme removal (#19791)
Extract react-native-web color utility into linear gradient (#16098)* Extract react-native-web color utility into linear gradient to minimize bundler setup * Update packages/expo-linear-gradient
Extract react-native-web color utility into linear gradient (#16098)* Extract react-native-web color utility into linear gradient to minimize bundler setup * Update packages/expo-linear-gradient/CHANGELOG.md Co-authored-by: Expo Bot <[email protected]> Co-authored-by: Expo Bot <[email protected]>
show more ...
[LinearGradient][iOS] fix implicit locations on iOS (#15955)* [LinearGradient] fix implicit locations on iOS * docs: changelog * fix: remove default value for locations from type definition
[LinearGradient][iOS] fix implicit locations on iOS (#15955)* [LinearGradient] fix implicit locations on iOS * docs: changelog * fix: remove default value for locations from type definition * fix: build files for defaults change * fix: clarify locations property behavior * fix: update build files * Update packages/expo-linear-gradient/CHANGELOG.md Co-authored-by: Evan Bacon <[email protected]>
Use declaration maps (#15782)* Added declarationMap to base tsconfig * et cp -a --no-lint --no-test --no-uniformity-check
[linear-gradient][ios] Rewrite entire module to Swift (#15168)
[eslint-config] remove `arrowParens` overwrite, reformat files (#14232)
[packages] rebuild packages after ESLint bump (#14203)
Rename unimodules imports to expo-modules-core
[sdk] upgrade typescript to v4.3.5 (#14015)
[linear-gradient] simplify props TS types (#13594)# Why Refs #13567 This small PR simplifies and unifies a bit more the TS types for components that extend `View`. # How Change: * `Rea
[linear-gradient] simplify props TS types (#13594)# Why Refs #13567 This small PR simplifies and unifies a bit more the TS types for components that extend `View`. # How Change: * `React.ComponentProps<typeof View>` => `ViewProps` # Test Plan The change has been tested by running on the `native-component-list` app and docs website on `localhost`.
[web][linear-gradient] fix: useMemo instead of useEffect (#12625)* useMemo instead of useEffect Unless I'm missing something, the intent of the code was to only recalculate gradient/angle when s
[web][linear-gradient] fix: useMemo instead of useEffect (#12625)* useMemo instead of useEffect Unless I'm missing something, the intent of the code was to only recalculate gradient/angle when some of the props change. For that, `useMemo` is the correct way to do it. With `useMemo`, the first render already has the correct result, instead of waiting for the `useEffect` to run. This also fixes SSR. * Build package
[linear-gradient] add doc comments in source (#12618)
Revert to class component (#11111)* Revert to class component * Added animated test to NCL * Update CHANGELOG.md * Update LinearGradientScreen.tsx
[expo-linear-gradient] Add proper children prop declaration (#10227)# Why We allow `children` property on `LinearGradient` in code, but no in type. # How Wrapped props with `React.PropsWit
[expo-linear-gradient] Add proper children prop declaration (#10227)# Why We allow `children` property on `LinearGradient` in code, but no in type. # How Wrapped props with `React.PropsWithChildren`. # Test Plan TS compiled the library, no longer reported problems in NCL.
[TS] Upgrade packages to TypeScript 4.0 (#9960)
[expo-linear-gradient] Avoid unnecessary re-render of NativeLinearGradient on web (#9342)* rebase on more recent master * add comment to trigger new CI run
[linear-gradient] Migrate to functional components (#8673)* Remove index re-export * Created shim element for unsupported platforms * Convert LinearGradient to functional component * Conve
[linear-gradient] Migrate to functional components (#8673)* Remove index re-export * Created shim element for unsupported platforms * Convert LinearGradient to functional component * Convert all react imports to star imports * Unify types and add doc blocks * Update NativeLinearGradient.web.tsx * Updated build files * Updated docs for linear gradient * Update linear-gradient.md * Update CHANGELOG.md * Use nullish * Clean up function export * Apply suggestions from code review Co-authored-by: James Ide <[email protected]> * Updated docs Co-authored-by: James Ide <[email protected]>
[lint] Add React hooks support to the linter plugin (#8455)This adds support for analyzing hooks with https://www.npmjs.com/package/eslint-plugin-react-hooks. This way we are more likely to catch e
[lint] Add React hooks support to the linter plugin (#8455)This adds support for analyzing hooks with https://www.npmjs.com/package/eslint-plugin-react-hooks. This way we are more likely to catch errors regarding hooks earlier. I enabled the two rules the plugin supports with their recommended severity levels. Added test cases to the fixtures, generated snapshots, and ensured the snapshots contained the expected errors and warnings.
Compile jsx in all packages (#8421)* compile jsx to js * Rebuild all packages without jsx * Updated build files
Delete propTypes (#8108)
[lint] Bump eslint-config-universe to 3.0.0 (#7592)This bumps eslint-config-universe to 3.0.0 (published to npm) and update expo-module-scripts to use the latest version. Tested with `yarn test`
[lint] Bump eslint-config-universe to 3.0.0 (#7592)This bumps eslint-config-universe to 3.0.0 (published to npm) and update expo-module-scripts to use the latest version. Tested with `yarn test` and `yarn lint` in eslint-config-universe, and `expotools check-packages`.
[lint] Add "prefer-const" setting (#7389)* [lint] Add "prefer-const" setting See https://github.com/expo/expo/blob/master/guides/Expo%20JavaScript%20Style%20Guide.md#let-and-const which explains
[lint] Add "prefer-const" setting (#7389)* [lint] Add "prefer-const" setting See https://github.com/expo/expo/blob/master/guides/Expo%20JavaScript%20Style%20Guide.md#let-and-const which explains the overall rationale for using `const` (mainly to pick a lintable option and to reduce attention cost talking about it). Tested by adding a test case to the linter and running tests and looking at the snapshot to see that the linter autofixed let to const. * [lint] Apply let/const autofixes * Add build files
[expo] Export types (#7120)* [location] Export missing types (#7079) # Why Part of https://github.com/expo/expo/issues/7077, resolves #4422 # How Exports: - LocationTaskOptions - Regi
[expo] Export types (#7120)* [location] Export missing types (#7079) # Why Part of https://github.com/expo/expo/issues/7077, resolves #4422 # How Exports: - LocationTaskOptions - Region - LocationCallback - HeadingCallback * [expo-analytics-amplitude] Export types (#7078) * [expo-error-recovery] Export types (#7084) * [expo-background-fetch] Export types (#7081) * [expo-barcode-scanner] Export types (#7082) * [expo-gl] Export types (#7085) * [expo-image-picker] Export types (#7087) * [expo-mail-composer] Export types (#7094) * [expo-localization] Export types (#7092) * [expo-local-authentication] Export types (#7090) * [expo-intent-launcher] Export types (#7089) * [expo-in-app-purchases] Export types (#7088) * [expo-screen-orientation] Export types (#7109) * [expo-sms] Export types (#7108) * [expo-speech] Export types (#7107) * [expo-web-browser] Export types (#7106) * [expo-video-thumbnails] Export types (#7105) * [expo-blur] Export types (#7113) * [expo-camera] Export types (#7114) * [expo-linear-gradient] Export types (#7115) * [expo-sensors] Export types (#7116) * [expo-sharing] Export types (#7117) * [expo-av] Export types (#7111) * [expo-av] Export types * [expo-av] Fix CI * [expo-blur] Type prefixing * [expo] Prefix types * [expo-camera] Fix typo * [expo-error-recovery] Use record type * [expo] Apply requested changes * [expo] Rebuilt packages * [expo] Update changelog
12