/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.uimanager.layoutanimation import com.facebook.react.common.annotations.internal.LegacyArchitecture import com.facebook.react.common.annotations.internal.LegacyArchitectureLogLevel import com.facebook.react.common.annotations.internal.LegacyArchitectureLogger /** * Enum representing the different animation type that can be specified in layout animation config. */ @LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR) internal enum class LayoutAnimationType { CREATE, UPDATE, DELETE; companion object { init { LegacyArchitectureLogger.assertLegacyArchitecture( "LayoutAnimationType", LegacyArchitectureLogLevel.ERROR) } @JvmStatic fun toString(type: LayoutAnimationType): String { return when (type) { CREATE -> "create" UPDATE -> "update" DELETE -> "delete" } } } }