Skip to content

Commit b64b613

Browse files
refactor: change author and package name (#12)
1 parent fa7aeef commit b64b613

15 files changed

+85
-84
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ Performant React Native image component.
2020
<p align="center" >
2121
<kbd>
2222
<img
23-
src="https://github.com/DylanVann/react-native-fast-image/blob/main/docs/assets/scroll.gif?raw=true"
23+
src="https://github.com/dream11/react-native-fast-image/blob/main/docs/assets/scroll.gif?raw=true"
2424
title="Scroll Demo"
2525
float="left"
2626
>
2727
</kbd>
2828
<kbd>
2929
<img
30-
src="https://github.com/DylanVann/react-native-fast-image/blob/main/docs/assets/priority.gif?raw=true"
30+
src="https://github.com/dream11/react-native-fast-image/blob/main/docs/assets/priority.gif?raw=true"
3131
title="Priority Demo"
3232
float="left"
3333
>
@@ -265,21 +265,21 @@ Thanks to [@mobinni](https://github.com/mobinni) for helping with the conceptual
265265

266266
## Licenses
267267

268-
- FastImage - MIT © [DylanVann](https://github.com/DylanVann)
268+
- FastImage - MIT © [Dream11](https://github.com/dream11)
269269
- SDWebImage - `MIT`
270270
- Glide - BSD, part MIT and Apache 2.0. See the [LICENSE](https://github.com/bumptech/glide/blob/master/license) file for details.
271271

272-
[build-badge]: https://github.com/dylanvann/react-native-fast-image/workflows/CI/badge.svg
273-
[build]: https://github.com/DylanVann/react-native-fast-image/actions?query=workflow%3ACI
274-
[coverage-badge]: https://img.shields.io/codecov/c/github/dylanvann/react-native-fast-image.svg
275-
[coverage]: https://codecov.io/github/dylanvann/react-native-fast-image
272+
[build-badge]: https://github.com/dream11/react-native-fast-image/workflows/CI/badge.svg
273+
[build]: https://github.com/dream11/react-native-fast-image/actions?query=workflow%3ACI
274+
[coverage-badge]: https://img.shields.io/codecov/c/github/dream11/react-native-fast-image.svg
275+
[coverage]: https://codecov.io/github/dream11/react-native-fast-image
276276
[downloads-badge]: https://img.shields.io/npm/dm/react-native-fast-image.svg
277-
[npmtrends]: http://www.npmtrends.com/react-native-fast-image
278-
[package]: https://www.npmjs.com/package/react-native-fast-image
277+
[npmtrends]: http://www.npmtrends.com/@d11/react-native-fast-image
278+
[package]: https://www.npmjs.com/package/@d11/react-native-fast-image
279279
[version-badge]: https://img.shields.io/npm/v/react-native-fast-image.svg
280280
[twitter]: https://twitter.com/home?status=Check%20out%20react-native-fast-image%20by%20%40atomarranger%20https%3A//github.com/DylanVann/react-native-fast-image
281-
[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/DylanVann/react-native-fast-image.svg?style=social
281+
[twitter-badge]: https://img.shields.io/twitter/url/https/github.com/dylanvann/react-native-fast-image.svg?style=social
282282
[github-watch-badge]: https://img.shields.io/github/watchers/dylanvann/react-native-fast-image.svg?style=social
283283
[github-watch]: https://github.com/dylanvann/react-native-fast-image/watchers
284284
[github-star-badge]: https://img.shields.io/github/stars/dylanvann/react-native-fast-image.svg?style=social
285-
[github-star]: https://github.com/dylanvann/react-native-fast-image/stargazers
285+
[github-star]: https://github.com/dream11/react-native-fast-image/stargazers

ReactNativeFastImageExample/src/AutoSizeExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {useCallback, useMemo, useState} from 'react';
22
import {StyleSheet, View} from 'react-native';
33
import SectionFlex from './SectionFlex';
4-
import FastImage, {FastImageProps} from 'react-native-fast-image';
4+
import FastImage, {FastImageProps} from '@d11/react-native-fast-image';
55
import Section from './Section';
66
import FeatureText from './FeatureText';
77
import {useCacheBust} from './useCacheBust';

ReactNativeFastImageExample/src/BorderRadiusExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import {StyleSheet, View} from 'react-native';
33
import SectionFlex from './SectionFlex';
4-
import FastImage from 'react-native-fast-image';
4+
import FastImage from '@d11/react-native-fast-image';
55
import Section from './Section';
66
import FeatureText from './FeatureText';
77
import {useCacheBust} from './useCacheBust';

ReactNativeFastImageExample/src/FastImageGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import FastImage from 'react-native-fast-image';
2+
import FastImage from '@d11/react-native-fast-image';
33
import {ImageGrid} from './ImageGrid';
44

55
const FastImageGrid = () => <ImageGrid ImageComponent={FastImage} />;
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
import React from 'react'
2-
import { StyleSheet, View } from 'react-native'
3-
import SectionFlex from './SectionFlex'
4-
import FastImage from 'react-native-fast-image'
5-
import Section from './Section'
6-
import FeatureText from './FeatureText'
7-
import { useCacheBust } from './useCacheBust'
1+
import React from 'react';
2+
import {StyleSheet, View} from 'react-native';
3+
import SectionFlex from './SectionFlex';
4+
import FastImage from '@d11/react-native-fast-image';
5+
import Section from './Section';
6+
import FeatureText from './FeatureText';
7+
import {useCacheBust} from './useCacheBust';
88

99
const GIF_URL =
10-
'https://cdn-images-1.medium.com/max/1600/1*-CY5bU4OqiJRox7G00sftw.gif'
10+
'https://cdn-images-1.medium.com/max/1600/1*-CY5bU4OqiJRox7G00sftw.gif';
1111

1212
export const GifExample = () => {
13-
const { url, bust } = useCacheBust(GIF_URL)
14-
return (
15-
<View>
16-
<Section>
17-
<FeatureText text="• GIF support." />
18-
</Section>
19-
<SectionFlex onPress={bust}>
20-
<FastImage style={styles.image} source={{ uri: url }} />
21-
</SectionFlex>
22-
</View>
23-
)
24-
}
13+
const {url, bust} = useCacheBust(GIF_URL);
14+
return (
15+
<View>
16+
<Section>
17+
<FeatureText text="• GIF support." />
18+
</Section>
19+
<SectionFlex onPress={bust}>
20+
<FastImage style={styles.image} source={{uri: url}} />
21+
</SectionFlex>
22+
</View>
23+
);
24+
};
2525

2626
const styles = StyleSheet.create({
27-
image: {
28-
backgroundColor: '#ddd',
29-
margin: 20,
30-
height: 100,
31-
width: 100,
32-
flex: 0,
33-
},
34-
})
27+
image: {
28+
backgroundColor: '#ddd',
29+
margin: 20,
30+
height: 100,
31+
width: 100,
32+
flex: 0,
33+
},
34+
});

ReactNativeFastImageExample/src/LocalImagesExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
TouchableOpacity,
77
ViewProps,
88
} from 'react-native';
9-
import FastImage, {FastImageProps, Source} from 'react-native-fast-image';
9+
import FastImage, {FastImageProps, Source} from '@d11/react-native-fast-image';
1010
import Section from './Section';
1111
import FeatureText from './FeatureText';
1212
import FieldsBase64 from './images/fields';

ReactNativeFastImageExample/src/PreloadExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {useState} from 'react';
22
import {StyleSheet, View} from 'react-native';
33
import SectionFlex from './SectionFlex';
4-
import FastImage from 'react-native-fast-image';
4+
import FastImage from '@d11/react-native-fast-image';
55
import Section from './Section';
66
import FeatureText from './FeatureText';
77
import Button from './Button';

ReactNativeFastImageExample/src/PriorityExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import {PixelRatio, StyleSheet, View} from 'react-native';
3-
import FastImage from 'react-native-fast-image';
3+
import FastImage from '@d11/react-native-fast-image';
44
import Section from './Section';
55
import SectionFlex from './SectionFlex';
66
import FeatureText from './FeatureText';

ReactNativeFastImageExample/src/ProgressExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {useState} from 'react';
22
import {StyleSheet, View, Text} from 'react-native';
33
import SectionFlex from './SectionFlex';
4-
import FastImage from 'react-native-fast-image';
4+
import FastImage from '@d11/react-native-fast-image';
55
import Section from './Section';
66
import FeatureText from './FeatureText';
77
import {useCacheBust} from './useCacheBust';

ReactNativeFastImageExample/src/ResizeModeExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import {StyleSheet, View} from 'react-native';
33
import SectionFlex from './SectionFlex';
4-
import FastImage from 'react-native-fast-image';
4+
import FastImage from '@d11/react-native-fast-image';
55
import Section from './Section';
66
import FeatureText from './FeatureText';
77
import BulletText from './BulletText';

0 commit comments

Comments
 (0)