Skip to content

Commit e3a6a46

Browse files
authored
Merge pull request #91 from devadattas/patch-1
Update README.md
2 parents 8fadcbf + be4c741 commit e3a6a46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ You can find this example code here : https://github.com/bamlab/react-native-ima
3232
## Basic Usage
3333

3434
```jsx
35-
import HeaderImageScrollView, { TriggeringView } from 'react-native-image-header-scroll-view';
35+
import { ImageHeaderScrollView, TriggeringView } from 'react-native-image-header-scroll-view';
3636

3737
// Inside of a component's render() method:
3838
render() {
3939
return (
40-
<HeaderImageScrollView
40+
<ImageHeaderScrollView
4141
maxHeight={200}
4242
minHeight={MIN_HEIGHT}
4343
headerImage={require("../../assets/NZ.jpg")}
@@ -54,7 +54,7 @@ render() {
5454
<Text>Scroll Me!</Text>
5555
</TriggeringView>
5656
</View>
57-
</HeaderImageScrollView>
57+
</ImageHeaderScrollView>
5858
);
5959
}
6060
```
@@ -71,7 +71,7 @@ You can find examples in a [dedicated repository](https://github.com/bamlab/reac
7171
All of the properties of `ScrollView` are supported. Please refer to the
7272
[`ScrollView` documentation](https://facebook.github.io/react-native/docs/scrollview.html) for more detail.
7373

74-
The `HeaderImageScrollView` handle also the following props. None is required :
74+
The `ImageHeaderScrollView` handle also the following props. None is required :
7575

7676
### Header
7777

@@ -134,7 +134,7 @@ All of the properties of `View` are supported.
134134
Just set the `maxOverlayOpacity` to `0`.
135135

136136
```jsx
137-
<HeaderImageScrollView
137+
<ImageHeaderScrollView
138138
minOverlayOpacity={0}
139139
maxOverlayOpacity={0}
140140
{/* ... */}

0 commit comments

Comments
 (0)