Skip to content

Commit 8801454

Browse files
committed
update README
1 parent 4b10297 commit 8801454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ npm install react-native-camera-roll-picker --save
1515

1616
* Require component
1717
```
18-
var CameraRollPicker = require('react-native-camera-roll-picker');
18+
import CameraRollPicker from 'react-native-camera-roll-picker';
1919
```
2020

2121
##Basic Usage
@@ -25,7 +25,7 @@ var CameraRollPicker = require('react-native-camera-roll-picker');
2525
```
2626

2727
##Props
28-
- `callback` : Callback function when images was selected. (is required!). Return a selected image array and current selected image.
28+
- `callback` : Callback function when images was selected. (is required!). Return a selected image array and current selected image.
2929
- `scrollRenderAheadDistance` : "How early to start rendering rows before they come on screen, in pixels." (Default: 500)
3030
- `initialListSize` : Specifies how many rows we want to render on our first render pass. (Default: 1)
3131
- `pageSize` : After the initial render where 'initialListSize' is used, ListView looks at the pageSize to determine how many rows to render per frame. (Default: 3)

0 commit comments

Comments
 (0)