Skip to content

Updated Expo import for a gradient #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2019

Conversation

matapo
Copy link
Contributor

@matapo matapo commented Aug 3, 2019

Updated in regards to Expo's error message:

"The following APIs have moved to separate packages and importing them from the "expo" package is deprecated: LinearGradient.

  1. Add correct versions of these packages to your project using:

    expo install expo-linear-gradient

    If "install" is not recognized as an expo command, update your expo-cli installation.

  2. Change your imports so they use specific packages instead of the "expo" package:

  • import { LinearGradient } from 'expo' -> import { LinearGradient } from 'expo-linear-gradient'"

@catalinmiron catalinmiron merged commit ef98927 into catalinmiron:master Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants