javascript - 在 ReactNative 中,按一下空格会产生很大的空间
问题描述
我在一个字符串中使用了一次空格,但我在屏幕上得到了太多的空白。我该如何解决这个问题?我不知道为什么会这样。
这是屏幕
这是我的代码我该如何解决这个问题?
import React from 'react';
import styled from 'styled-components/native';
const Container = styled.View`
background: lightskyblue;
width: 100%;
height: 100%;
`;
const HeyContainer = styled.View`
width: 100%;
height: 100%;
border: lightcoral;
`;
const PolicyContainer = styled.View`
background: lightyellow;
margin: 3% 3% 3% 3%;
`;
const Label = styled.Text`
font-size: 14px;
text-align: justify;
`;
const Policy = () => {
return (
<Container>
<PolicyContainer>
<HeyContainer>
<Label>
{'<'}example{'>'}('https://example'이하 'example')은(는) 「개인정보
보호법」 제30조에 따라 정보주체의 개인정보를 보호하고 이와 관련한
고충을 신속하고 원활하게 처리할 수 있도록 하기 위하여 다음과 같이
개인정보 처리방침을 수립·공개합니다.
</Label>
</HeyContainer>
</PolicyContainer>
</Container>
);
};
export default Policy;
解决方案
推荐阅读
- javascript - 尝试访问表单处理程序中的状态会在本机反应中给出默认状态而不是更新状态
- java - 创建 okhttp3 请求正文以在 google drive 中创建文件夹
- excel - 具有多个条件的 Excel 求和公式
- javascript - 有什么方法可以简化这个 JavaScript 函数吗?
- html - Django 自定义 404 页面未按预期工作
- angular - 从应用程序组件到路由的 Angular 通信
- javascript - 使用 DocumentClient 存储时出现在 JSON 中的 DynamoDB WrapperName
- excel - 如何在 Excel 中点击超链接并关闭原始文件?
- ios - 匿名函数的 Swift 队列
- sql - SQL如何在已经使用max时获取最大日期