diff --git a/app/mobile/ios/Databag.xcodeproj/project.pbxproj b/app/mobile/ios/Databag.xcodeproj/project.pbxproj index d6343f17..e18215b7 100644 --- a/app/mobile/ios/Databag.xcodeproj/project.pbxproj +++ b/app/mobile/ios/Databag.xcodeproj/project.pbxproj @@ -567,7 +567,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; @@ -639,7 +639,7 @@ buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; - CLANG_CXX_LANGUAGE_STANDARD = "c++14"; + CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; diff --git a/app/mobile/src/utils/Logo.jsx b/app/mobile/src/utils/Logo.jsx new file mode 100644 index 00000000..c8f992f6 --- /dev/null +++ b/app/mobile/src/utils/Logo.jsx @@ -0,0 +1,40 @@ +import { useState } from 'react'; +import { Image, View } from 'react-native'; +import avatar from 'images/avatar.png'; +import appstore from 'images/appstore.png'; +import solution from 'images/solution.png'; +import team from 'images/team.png'; + +export function Logo({ src, width, height, radius }) { + + const [source, setSource] = useState(null); + + if (src != source) { + setSource(src); + } + + return ( + + { source === 'team' && ( + + )} + { source === 'avatar' && ( + + )} + { source === 'appstore' && ( + + )} + { source === 'solution' && ( + + )} + { !source && ( + + )} + { source && source.startsWith('http') && ( + + )} + + ); +} + + diff --git a/app/mobile/src/utils/package.json b/app/mobile/src/utils/package.json new file mode 100644 index 00000000..6e3a19f2 --- /dev/null +++ b/app/mobile/src/utils/package.json @@ -0,0 +1,3 @@ +{ + "name": "utils" +}