Closed
Description
Describe the bug
First time using the Galio framework (I am using it along with the argon template).
I am adding the Card component in my screen:
import { Card } from 'galio-framework';
...
<Card title={myTitle} />
Expected behavior
Card component should mount with any issue
But this is what I'm getting:
Smartphone (please complete the following information):
- Device: iPhone Xr
- Type of device: physical
- React-Native version: https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz
- Expo version: sdk-34
Additional context
I am using Galio with the Argon Template. (https://github.com/creativetimofficial/argon-react-native). I don't know if this error comes from the template.
Metadata
Metadata
Assignees
Labels
No labels
Activity
GustavoBlaze commentedon Sep 29, 2019
It's happen with me too, and i'm use just the Galio
palingheorghe commentedon Sep 30, 2019
Hi @seyaobey @GustavoBlaze ! Thanks for pointing this out! This is a problem with our Card component which we need to solve asap. As far as I can see if you add the
style
prop and replace...rest
with...props
at the beginning of the function, everything is solved.Thanks 🧜🏽♂️
presola commentedon Oct 7, 2019
this is also the same for Text and Block components
AbdurRehman26 commentedon Oct 7, 2019
I cant seem to pass dynamic image url to card as well. Anyone here has done it ?
AbdurRehman26 commentedon Oct 7, 2019
Doing this works but for only static image paths. i can not pass a variable as prop for image
palingheorghe commentedon Oct 10, 2019
@presola the
style
prop should work as intended for theBlock
component.Text
apparently has the same issue which can be solved by addingstyle
in the prop section of the function in thetext.js
file of our component. We will solve this asap with the next hotfix.@AbdurRehman26 I'm glad the fix worked! Could you please send a code snippet of the way you're adding the dynamic image please?
palingheorghe commentedon Oct 15, 2019
This specific issue should be solved now for Card and Text components. Release info for v0.6.3 Release info for v0.6.2