mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-29 15:09:26 -05:00
34382d45a9
Fix issue where player elements would be falling off of the screen Move source files into `src` folder for project organization
33 lines
666 B
TypeScript
33 lines
666 B
TypeScript
import {
|
|
ListTemplateConfig,
|
|
NowPlayingTemplateConfig,
|
|
TabBarTemplateConfig,
|
|
} from 'react-native-carplay'
|
|
|
|
jest.mock('react-native-carplay', () => {
|
|
return {
|
|
ListTemplate: class {
|
|
config: ListTemplateConfig
|
|
|
|
constructor(config: ListTemplateConfig) {
|
|
this.config = config
|
|
}
|
|
},
|
|
NowPlayingTemplate: class {
|
|
config: NowPlayingTemplateConfig
|
|
|
|
constructor(config: NowPlayingTemplateConfig) {
|
|
this.config = config
|
|
}
|
|
},
|
|
TabBarTemplate: class {
|
|
config: TabBarTemplateConfig
|
|
|
|
constructor(config: TabBarTemplateConfig) {
|
|
this.config = config
|
|
}
|
|
},
|
|
checkForConnection: jest.fn(), // if needed as a named export too
|
|
}
|
|
})
|