-
Notifications
You must be signed in to change notification settings - Fork 25.1k
App crash when "unset" used on numeric style field. #32032
Copy link
Copy link
Closed
Labels
Needs: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
Description
App crashes on Android when trying to set a value to "unset", seems to work fine on Web, not tried iOS. I get the same behaviour on multiple devices.
React Native version:
Run react-native info in your terminal and copy the results here.
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Go to the snack example here: https://reactnative.dev/docs/flexbox#flex-wrap
- Edit either
topofleftin any of thestyleproperties to be"unset". - App crash.
Expected Results
I'd expect it not to crash and apply the value the same as on Web.
Snack, code example, screenshot, or link to a repository:
import React from "react";
import { View } from "react-native";
const Flex = () => {
return (
<View style={{
flex: 1,
backgroundColor: "red",
left: "unset"
}} />
);
};
export default Flex;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.