Tweak positioning

zio/stable
Paul Frazee 2024-01-22 15:52:50 -08:00
parent eda4dee3ab
commit f67812d09a
1 changed files with 3 additions and 1 deletions

View File

@ -283,7 +283,8 @@ const styles = StyleSheet.create({
pointerEvents: 'none', pointerEvents: 'none',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
position: 'absolute', // @ts-ignore web only -prf
position: 'fixed',
padding: 16, padding: 16,
top: 0, top: 0,
bottom: 0, bottom: 0,
@ -315,6 +316,7 @@ function getImageFromUri(
const type = item.type const type = item.type
if (type === 'text/plain') { if (type === 'text/plain') {
console.log('hit')
item.getAsString(async itemString => { item.getAsString(async itemString => {
if (isUriImage(itemString)) { if (isUriImage(itemString)) {
const response = await fetch(itemString) const response = await fetch(itemString)