You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After investigating with @Trobyss we found an issue with styled-components after migrating on 0.61-rc3 to test on ANDROID.
ANDROID ONLY
"react": "16.9.0",
"react-native": "0.61.0-rc.3",
"styled-components": "^4.3.2"
You can freely switch between Bug and BuggingView to see the difference.
The text is correctly displaying above the background in absolute, but not the background of the text container.
Without styled-components, this works.
importReactfrom"react";import{Text,View}from"react-native";importstyledfrom"styled-components/native";constBug=()=>{return(<Viewstyle={{flex: 1}}><BuggingView/><PageWrapper><Text>
This should appear above backgroundThis should appear above background This should appear above background This should appear
above above background This should appear above background This should appear above background This should appear above background
This This should appear above background This should appear above background This should appear above background This should
appear above background This should appear above background This should appear above background This should appear above
background This should appear above background This should appear above background This should appear above background This should
appear above background This should appear above background This should appear above background This should appear above
background This should appear above background This should appear above background This should appear above background This should
appear above background This should appear above background This should appear above background This should appear above
background This should appear above background
</Text></PageWrapper></View>);};constBuggingView=styled.View` height: 200; position: absolute; background-color: blue; top: 0; right: 0; left: 0;`;constPageWrapper=styled.View` background-color: red; padding: 20px; border-radius: 8px; flex: 1; margin: 20px;`;constNotBug=()=>(<Viewstyle={{flex: 1}}><Viewstyle={{height: 200,backgroundColor: 'blue',position: "absolute",top: 0,right: 0,left: 0}}/><Viewstyle={{backgroundColor: "red",padding: 20,flex: 1,margin: 20}}><Text>
This should appear above backgroundThis should appear above background This should appear above background This should appear above
above background This should appear above background This should appear above background This should appear above background This
This should appear above background This should appear above background This should appear above background This should appear above
background This should appear above background This should appear above background This should appear above background This should
appear above background This should appear above background This should appear above background This should appear above background
This should appear above background This should appear above background This should appear above background This should appear above
background This should appear above background This should appear above background This should appear above background This should
appear above background This should appear above background This should appear above background This should appear above background
</Text></View></View>);exportdefaultBug;
Hello
After investigating with @Trobyss we found an issue with styled-components after migrating on 0.61-rc3 to test on ANDROID.
You can freely switch between
Bug
andBuggingView
to see the difference.The text is correctly displaying above the background in absolute, but not the background of the text container.
Without styled-components, this works.
Any idea what would cause that ? as you can see this works with latest expo version : https://snack.expo.io/@afigueiredo/1fe053
Best regards
The text was updated successfully, but these errors were encountered: