Comments (10)
Hmm, this line causes the issue that you've found @jigartankhupp
import { LinearGradient } from "expo";
It looks like this component simply passes the props to the react-native-linear-gradient
package underneath. The only catch is thatreact-native-linear-gradient
uses native code so theres an extra install step. (The expo code insulates you from having to deal with the native deps)
@alexZajac Perhaps a non-expo and expo version of this package is needed, as long as we can reliably tell the difference between an expo and non-expo project.... Thoughts?
from react-native-skeleton-content.
@jigartankhupp I will definitely create a version for non-expo projects, because as @juddey mentionned, using the react-native-linear-gradient
package introduces some native code, which can't be included as such in an Expo project. Similarly, it's a pain for Expo projects to try including the native package.
from react-native-skeleton-content.
@juddey Yes, correct it seems I can fork and install react-native-linear-gradient instead of LinearGradient
from expo so it will be run on non-expo project. What do you think it will be the correct approach or not?
from react-native-skeleton-content.
Yes @jigartankhupp thats certainly a solution for non-expo projects. I'm not familiar enough with expo though to know what to do to ensure compatibility.
from react-native-skeleton-content.
Personally, I like to work on a non-expo project. I agree that expo provides good libraries and live reload on the app without a cable but losing native packages is not an ideal thing.
from react-native-skeleton-content.
I'm waiting non-expo version too. Thanks :)
from react-native-skeleton-content.
@jigartankhupp @efec89 I made the nonexpo package version, please check it out here, and give me some feedback because I'm not able to test it right now. If changes are required, let me know.
from react-native-skeleton-content.
@alexZajac Thank you.
from react-native-skeleton-content.
@alexZajac when I install react-native-skeleton-content-nonexpo, there isn't any source in the installed directory.
from react-native-skeleton-content.
Hi @tjboudreaux !
The package doesn't include any src folder because as it's written in Typescript, I made the choice to only include the src directory on Github but not on the package itself.
The lib folder is the result of building the Typescript files to Javascript, and is included in the latest version.
from react-native-skeleton-content.
Related Issues (20)
- Excessive number of pending callbacks with Expo SDK 40 HOT 4
- Update react-native-reanimated dependency HOT 2
- Typescript getting error: Types of property 'flexDirection' are incompatible. HOT 1
- please change the react-native-reanimated with latest version HOT 3
- Incompatibility with Expo SDK 41 HOT 15
- How can I let the component figure out the layout by it's children. HOT 1
- Feature: Support nested child layout, extract skeleton layout into components to reuse.
- expo SDK 42 HOT 3
- Invariant Violation Error HOT 3
- Expo SDK 43
- flatlist data not showing inside <SkeletonContent> HOT 3
- Expo SDK 43 HOT 2
- Remove React Native Reanimated 2 as direct dependency HOT 6
- Dependencies versions upgrade for Expo SDK 44 HOT 19
- Expo SDK 45 HOT 7
- App freezing when turning on debug with chrome HOT 3
- The library is not working with the latest expo SDK 46 HOT 27
- Error message HOT 8
- Lib doesn't work on RN 0.72 HOT 3
- react-native-reanimated v3 drops support for code this package uses (fixed) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-skeleton-content.