Render text box with transparent background on top of image in React Native iOS

后端 未结 4 434
天涯浪人
天涯浪人 2021-01-30 16:54

I\'m trying to render a block with white text on top of an image in my testing of React Native. But instead i get a black block on top of my image with white text in it. Not wha

4条回答
  •  有刺的猬
    2021-01-30 17:33

    I just ran into the same problem. Try removing backgroundColor: '#000000', from your container styles. Not sure why, but the background colour of the top-level component seems to be used in this case.

提交回复
热议问题