Skip to content

App crash when "unset" used on numeric style field. #32032

@brinsleylogic

Description

@brinsleylogic

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.

  1. Go to the snack example here: https://reactnative.dev/docs/flexbox#flex-wrap
  2. Edit either top of left in any of the style properties to be "unset".
  3. 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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions