work on PlayView is almost done everything works fine the gameplay makes the mobile crash but it will be fixed later
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { ViewStyle, ImageBackground, Platform } from 'react-native';
|
||||
import { ViewStyle, Image, Platform, StyleProp, ImageStyle } from 'react-native';
|
||||
import { SvgCssUri } from 'react-native-svg/css';
|
||||
|
||||
type SvgContainerProps = {
|
||||
@@ -10,7 +10,9 @@ type SvgContainerProps = {
|
||||
|
||||
export const SvgContainer = ({ url, onReady, style }: SvgContainerProps) => {
|
||||
if (Platform.OS === 'web') {
|
||||
return <ImageBackground source={{ uri: url }} onLoad={onReady} style={style} />;
|
||||
return (
|
||||
<Image source={{ uri: url }} onLoad={onReady} style={style as StyleProp<ImageStyle>} />
|
||||
);
|
||||
}
|
||||
return (
|
||||
<SvgCssUri
|
||||
|
||||
Reference in New Issue
Block a user