添加播放图标

This commit is contained in:
lyswhut 2021-05-16 12:49:10 +08:00
parent 8f9db4c0cf
commit d46e91305a
10 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,11 @@
// import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource' // import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'
import defaultUrl from '@/resources/medias/Silence02s.mp3' import defaultUrl from '@/resources/medias/Silence02s.mp3'
import notificationIcon from '@/resources/images/notification.xhdpi.png'
// const defaultUrl = resolveAssetSource(resourceDefaultUrl).uri // const defaultUrl = resolveAssetSource(resourceDefaultUrl).uri
export { export {
defaultUrl, defaultUrl,
notificationIcon,
} }
// export const defaultUrl = require('@/resources/medias/Silence02s.mp3') // export const defaultUrl = require('@/resources/medias/Silence02s.mp3')

View File

@ -273,7 +273,7 @@ export const updateOptions = (options = {
// stopIcon: require('./stop-icon.png'), // stopIcon: require('./stop-icon.png'),
// previousIcon: require('./previous-icon.png'), // previousIcon: require('./previous-icon.png'),
// nextIcon: require('./next-icon.png'), // nextIcon: require('./next-icon.png'),
// icon: require('./notification-icon.png'), // The notification icon // icon: notificationIcon, // The notification icon
}) => { }) => {
return TrackPlayer.updateOptions(options) return TrackPlayer.updateOptions(options)
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB