Comments (10)
I'm still having layout problems on Android, the child views are not centered properly using alignItems: "center". Works as it should on iOS.
from react-native-cardview.
Strangely, wrapping the children in a normal RN View
doesn't work either:
<CardView
style={{ height: 100, margin: 20 }}
cardElevation={2}
cardMaxElevation={2}
cornerRadius={0}
>
<View
style={{
flex: 1,
justifyContent: "center",
alignItems: "center"
}}
>
<Text>Elevation 1</Text>
<Text>Elevation 2</Text>
<Text>Elevation 3</Text>
<Text>Elevation 4</Text>
</View>
</CardView>
from react-native-cardview.
@aranda-adapptor Thanks for issue. I will look into this and fix by end of the day.
from react-native-cardview.
@aranda-adapptor I am closing this issue. Please latest version now.
from react-native-cardview.
Thanks for the quick fix!
from react-native-cardview.
@Sundin if u dont send cardElevation value nor send '0',it works?
from react-native-cardview.
@Sundin i have same issues,did u solve itοΌ
from react-native-cardview.
@est7 Unfortunately I didn't find a workaround. I used a normal View component with a borderRadius instead (and thus had to sacrifice the shadow/elevation effect). I didn't try cardElevation: 0 but it should have the same effect if it works like you said.
from react-native-cardview.
Elevation 0 fixes the issue, but of course removes the shadow. Any updates on this issue?
from react-native-cardview.
Is 'height' props must required? I think it would be better like View, which 'height' is adaptive according to the height of its sub-layouts
from react-native-cardview.
Related Issues (20)
- Typescript issues
- Task :react-native-cardview:verifyReleaseResources FAILED HOT 4
- Unable to use cardview HOT 1
- how to use custom shadow color HOT 4
- Not working with react-native 0.60 in Android, AndroidX HOT 2
- Not working in IOS. through an error. HOT 1
- Release Build failed HOT 3
- Task :react-native-cardview:verifyReleaseResources FAILED HOT 2
- Support for Autolinking HOT 1
- Replace obsolete 'compile' with 'implementation' HOT 2
- Negative Margin for children not working on android. HOT 3
- Error in importing HOT 1
- Could not find a declaration file for module. HOT 1
- i am put index.d.ts to project of react-native root directory, but notice is not found file of type declare HOT 2
- TouchableNativeFeedback doesn't show any animation if applied to CardView
- how to set only top shadows?
- Invariant Violation: Text strings must berendered within a <Text> component. HOT 1
- how to add onPress / onCLick listener on cardview?
- Shadow is not showing in left and right when we give marginHorizontal or paddingHorizontal to the parent
- Add react-native-web support
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-cardview.