【问题标题】:React Native Depth in a View在视图中反应原生深度
【发布时间】:2021-10-10 17:05:13
【问题描述】:

我遇到了一个问题,我想要在 React native 中使用 opposite of elevation,它看起来像这样 第二个视图中包含某种 ID。它没有升高,但有一些深度。谁能帮我弄清楚它的解决方案。看起来影子是在里面而不是外面

【问题讨论】:

    标签: android react-native view depth


    【解决方案1】:

    试试这个,我想它会帮助你=)

    shadowColor: '#000',
      shadowOffset: { width: 0, height: 2 },
      shadowOpacity: 0.5,
      shadowRadius: 2,
      elevation: 2,
    

    【讨论】:

    • 它正在提升视图,但我想在视图中添加一些 depth
    • 看起来影子是在里面而不是外面。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多