History log of /expo/packages/expo-linear-gradient/src/NativeLinearGradient.web.tsx (Results 1 – 16 of 16)
Revision Date Author Comments
# 241c53c0 12-Jan-2023 Bartosz Kaszubowski <[email protected]>

[linear-gradient] simplify web code (#20611)

Co-authored-by: Fernando Rojo <[email protected]>


# 43f78876 31-Oct-2022 Brent Vatne <[email protected]>

Fix check-packages on CI broken due to enzyme removal (#19791)


# d74f18b9 28-Jan-2022 Evan Bacon <[email protected]>

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 ...


# 35f78160 01-Sep-2021 Bartosz Kaszubowski <[email protected]>

[eslint-config] remove `arrowParens` overwrite, reformat files (#14232)


# bf99f284 17-May-2021 Petr Bela <[email protected]>

[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

show more ...


# 2f1b80c8 29-Jul-2020 Dan Maas <[email protected]>

[expo-linear-gradient] Avoid unnecessary re-render of NativeLinearGradient on web (#9342)

* rebase on more recent master

* add comment to trigger new CI run


# 257e8878 08-Jun-2020 Evan Bacon <[email protected]>

[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]>

show more ...


# 6a183b6c 27-May-2020 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.

show more ...


# 9bbdff23 09-Sep-2019 Evan Bacon <[email protected]>

[jest] Added tests to expo-linear-gradient (#5480)

* Added tests to expo-linear-gradient

* Merge branch 'master' into @evanbacon/jest-expo/linear-gradient

* Fixed enzyme docs with usage

* U

[jest] Added tests to expo-linear-gradient (#5480)

* Added tests to expo-linear-gradient

* Merge branch 'master' into @evanbacon/jest-expo/linear-gradient

* Fixed enzyme docs with usage

* Update LinearGradient-test.web.tsx

* Fixed web Linear Gradient

* Added more color tests

show more ...


# 79a5fc63 31-Aug-2019 James Ide <[email protected]>

[lint] Add a "lint" script to all packages and fix lint warnings & errors

This turns on linting for all of the packages, enforced by `expotools check-packages`. I added a "lint" script to each packa

[lint] Add a "lint" script to all packages and fix lint warnings & errors

This turns on linting for all of the packages, enforced by `expotools check-packages`. I added a "lint" script to each package and an `.eslintrc.js` file created by expo-module-scripts. For some packages like jest-expo that are intended to run on Node, I used a small handwritten ESLint config that uses the universe/node config.

Tested with `expotools check-packages` after fixing all the lint warnings and errors.

show more ...


# ebd93abe 04-Apr-2019 Evan Bacon <[email protected]>

[web][Linear Gradient] Fixed gradient bugs (#3883)

* Ensure a gradient is always drawn

* Ensure color is returned when ARGB value is `0`: #3880

* updated gradient angle

* Update LinearGradi

[web][Linear Gradient] Fixed gradient bugs (#3883)

* Ensure a gradient is always drawn

* Ensure color is returned when ARGB value is `0`: #3880

* updated gradient angle

* Update LinearGradientScreen.js

show more ...


# c01d0526 20-Mar-2019 Evan Bacon <[email protected]>

[web] Updated gradient style syntax (#3789)

* Added style fix suggested by @necolas

* Do not invoke the `getBackgroundImage` method twice or flatten styles https://github.com/expo/expo/commit/bf8

[web] Updated gradient style syntax (#3789)

* Added style fix suggested by @necolas

* Do not invoke the `getBackgroundImage` method twice or flatten styles https://github.com/expo/expo/commit/bf882ac820dcd69e9bc018dc47aaedf199502ad0#r32746571

* Update packages/expo-linear-gradient/src/NativeLinearGradient.web.tsx

Co-Authored-By: EvanBacon <[email protected]>

show more ...


# bf882ac8 14-Mar-2019 Evan Bacon <[email protected]>

[web] Fixed gradient parity issues (#3729)

* Fixed gradient parity issues

* Fixed gradient points edge case

* Removed redundant nullable check
* Removed console logs


# e349320e 08-Mar-2019 Evan Bacon <[email protected]>

[web] Linear Gradient web color bug fix (#3671)

* Fixed bug where certain _valid_ web colors were not being converted properly.

* Working with RN processColor

* Reverted extra changes

* Upd

[web] Linear Gradient web color bug fix (#3671)

* Fixed bug where certain _valid_ web colors were not being converted properly.

* Working with RN processColor

* Reverted extra changes

* Updated build to reflect changes

* Updated `hexStringFromProcessedColor` format and types

* renamed colorStr to hexColorString

show more ...


# 55fb1937 28-Jan-2019 Evan Bacon <[email protected]>

Fixed style bug (#3354)


# b6f8472a 25-Jan-2019 Brent Vatne <[email protected]>

[sdk] Extract LinearGradient and KeepAwake (#3287)