Реагируй родной, как сделать форму - PullRequest
1 голос
/ 05 февраля 2020

я пытаюсь сделать это по-родному, enter image description here

Я пытался иметь квадрат и овал, я пытался иметь радиус границы в единственном квадрате, но каждый раз я не могу достичь этого результата.

Это то, что я пытался, но, как я уже сказал, я не знаю, как этого достичь

export const StyledText = styled.Text`
  text-align: center;
  font-family: ${FONTS.fontFamily.bold};
  font-size: 29px;
  color: white;
`;

export const StyledContainer = styled.View`
  align-items: center;
  justify-content: center;
  height: 250px;
`;

export const StyledOval = styled.View`
  width: 110%;
  height: 150px;
  border-radius: 100-5;
  border-width: 10;
  background-color: red;
  border-color: black;
  position: absolute;
  top: 50;
  z-index: 10;
`;

export const StyledSquare = styled.View`
  flex: 1;
  align-content: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  background-color: red;
  position: absolute;
  top: 0;
  z-index: 11;
`;
...