Skip to content
Snippets Groups Projects
Commit 4b80b760 authored by HARTZ HENRI's avatar HARTZ HENRI
Browse files

feat: sound not supported

parent 602694db
Branches
2 merge requests!134Feature/122 answer with image,!132V4.0
Pipeline #325571 failed with stages
in 42 seconds
import {TouchableOpacity, Text, StyleSheet, View, Image} from "react-native";
import {ButtonsStyles} from "../../styles/ButtonsStyles";
import {TextsStyles} from "../../styles/TextsStyles";
import React from "react";
interface Props{
text: string;
......@@ -33,8 +34,8 @@ export default function AnswerButton({text, handleButtonPressed, buttonStyle, bu
source={{uri: text}}
/>
:
text.includes('data:sound') ?
''
text.includes('data:audio') ?
<Text style={[TextsStyles.defaultButtonText, buttonText]}>sound: not supported</Text>
:
<Text style={[TextsStyles.defaultButtonText, buttonText]}>{text}</Text>
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment