lint, fix tests
This commit is contained in:
@@ -579,85 +579,85 @@ describe('parseEmbedPlayerFromUrl', () => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'giphy_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
playerUri: 'https://i.giphy.com/media/gifId/giphy.gif',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'tenor_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://media1.tenor.com/m/gifId/someName.gif',
|
playerUri: 'https://media1.tenor.com/m/gifId/someName.gif',
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'tenor_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://tenor.com/view/gifId.gif',
|
playerUri: 'https://tenor.com/view/gifId.gif',
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
type: 'tenor_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://tenor.com/view/gifId.gif',
|
playerUri: 'https://tenor.com/view/gifId.gif',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'tenor_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://c.tenor.com/gifId/tenor.gif',
|
playerUri: 'https://c.tenor.com/gifId/tenor.gif',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'tenor_gif',
|
type: 'gif',
|
||||||
playerUri: 'https://c.tenor.com/gifId/tenor.webp',
|
playerUri: 'https://c.tenor.com/gifId/tenor.webp',
|
||||||
},
|
},
|
||||||
undefined,
|
undefined,
|
||||||
|
|||||||
@@ -201,9 +201,7 @@ export function ExternalPlayer({
|
|||||||
},
|
},
|
||||||
styles.topRadius,
|
styles.topRadius,
|
||||||
]}
|
]}
|
||||||
source={{
|
source={{uri: link.thumb}}
|
||||||
uri: link.thumb,
|
|
||||||
}}
|
|
||||||
accessibilityIgnoresInvertColors
|
accessibilityIgnoresInvertColors
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@@ -240,10 +238,6 @@ const styles = StyleSheet.create({
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
backgroundColor: 'rgba(0,0,0,0.5)',
|
backgroundColor: 'rgba(0,0,0,0.5)',
|
||||||
},
|
},
|
||||||
imageContainer: {
|
|
||||||
width: '100%',
|
|
||||||
overflow: 'hidden',
|
|
||||||
},
|
|
||||||
overlayLayer: {
|
overlayLayer: {
|
||||||
zIndex: 2,
|
zIndex: 2,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user