React - vertically align text and icon
I have tried all things to align vertically an icon and a text, Code: <Danger color="secondary" style={{ flex:1,justifyContent: "center",alignItems: "center" }}> <ErrorOutline className={classes.warning} /> <text numberOfLines={1} style={{ textAlignVertical: "center" }}> The last job was canceled </text> </Danger> Things that I've tried : display, justifyContent, alignItems, flex, flexDirection, etc. Any advice? Thanks!
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.