4Manuals

  • PDF Cloud HOME

在React Native中从重叠的svg隐藏背景 Download

    在React Native React-native动画时间序列及其百分比或替代 谁能帮助我通过wordpress登录和注册来创建React Native应用? SVG文件在表格布局中移到屏幕上方 生成失败升级后,本机对最新版本做出反应 使用多种流协议(例如mms://,rstp://等)响应本地实时流 我们可以在PHP / JavaScript中使用React-Native库吗? 在开发功能时如何在不更新到测试阶段或任何其他测试人员的情况下测试构建 针对使用react-native中的fetch检索的json对象验证数据 React Native req.files为空但req.body已填充

我正在尝试创建彼此重叠的两个圆的形状,并且我成功地做到了,只是重叠的部分显示的是背景图像,而不是设置在圆圈内的图像,而react-native-svg区域中的图像非常新,因此请帮助我...这是我的代码

 <ImageBackground source={require('../assets/images/20.png')} style={styles.background}>
            <Svg height={height} width="100%">
                <Defs>
                    <ClipPath id="clip">
                        <Circle cx="320" cy="230" r="250" />
                        <Circle cx="80" cy="150" r="180" />
                    </ClipPath>
                </Defs>
                <SvgImg
                    href={require('../assets/images/18.jpg')}
                    width={500}
                    height={500}
                    preserveAspectRatio="xMidYMid slice"
                    clipPath="url(#clip)"
                />
            </Svg>
        </ImageBackground>

enter image description here

1 个答案:

答案 0 :(得分:0)

这是ImageBackground中的常见问题

因为还需要为内部图片定义样式

尝试设置imageStyle

public class ChatHandlerConfigurator extends ServerEndpointConfig.Configurator
{
    @Override
    public void modifyHandshake(ServerEndpointConfig config, HandshakeRequest request, HandshakeResponse response)
    {
        Map<String, List<String>> map = request.getParameterMap();
        if (!map.containsKey("path")) {
            throw new IllegalArgumentException("path was not provided");
        }

        // Optionally add values to userProperties
        Map<String, Object> userProperties = config.getUserProperties();
        userProperties.put("path", map.get("path").get(0));
    }
}



Similar searches
    角度订阅链可观察 Powershell在服务器2012中获取未分配/未分配的分区 将序列长度添加到fasta文件的标头中 Samsung RB195ZABB Refrigerator User Manual 正则表达式将长表达式字符串拆分为单个表达式的数组