Repository navigation
Fix for Expo #114
YasserShkeir
started this conversation in
Show and tell
Replies: 3 comments 1 reply
|
Thank you very much! |
0 replies
|
but is it a good idea to solve this by editing node modules ? because it means that wherever you install your application you have to modify this again |
1 reply
|
You can build your own component to work with Expo in the meantime. Replace Make sure you install This is a temporary workaround until a permanent fix is added. Here's a gist of the solution https://gist.github.com/EddyTheDove/1e8a527ddf0f41dc240c41b72b2fdaae |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
I implemented a fix that will allow you to develop in expo. Follow along:
Step 1:
Go to
node_modules\react-native-skeleton-placeholder\lib\skeleton-placeholder.jsStep 2:
Replace the line that includes:
const react_native_linear_gradient_1 = __importDefault(require("expo-linear-gradient"));With
const LinearGradient = require('expo-linear-gradient').LinearGradient;Step 3:
animatedGradientStyle should become as below:
Step 4:
Replace
react_native_linear_gradient_1.defaultinside the masked view withLinearGradientAnd that's it! Please let me know if this helps 👍
All reactions