React Native - View disappears when position is absolute on Android

前端 未结 6 1372
温柔的废话
温柔的废话 2021-02-14 08:04

Whenever I made the position style \'absolute\' for this view, it disappears. I have no idea why it is happening.

import React, { Component } from \'react\';
imp         


        
6条回答
  •  北恋
    北恋 (楼主)
    2021-02-14 08:32

    I solved mine by giving parent component a flex:

    position:'relative',
    flex:1
    

    Just dropping it soo it could be helpful to people.

提交回复
热议问题