Relative Content

Tag Archive for javascriptarraysreact-nativeuser-interfaceexpo

React native Expo – Invalid Call TransformError in Image source require

// each bookshelf component runs this, currently i have 2. export default function Bookshelf({id, title}) { const bookshelfData = useBookshelvesStore((state) => state.data) var bookCount = bookshelfData[id – 1].books.length // get the count, used to get the image function onBookshelfPressed(){ router.push({ pathname: ‘./bookshelfItems/’+id, }) } return( <View className=’flex mx-5 bg-zinc-800’> <Pressable onPress={onBookshelfPressed}> <Text className=’font-fbold text-white text-xl […]