Skip to content

Commit 0878838

Browse files
dspaccapeliSimek
authored andcommitted
[docs] ImagePicker: Highlight React import (expo#18355)
Co-authored-by: Bartosz Kaszubowski <[email protected]>
1 parent 457118b commit 0878838

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/pages/tutorial/image-picker.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ Now we will take the data that we get from the image picker and use it to show t
8787

8888
<!-- prettier-ignore -->
8989
```js
90+
/* @info Import React to use useState */import React from 'react';/* @end */
91+
import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
92+
import * as ImagePicker from 'expo-image-picker';
93+
9094
export default function App() {
9195
/* @info Initialize a variable to hold our selected image data */const [selectedImage, setSelectedImage] = React.useState(null);/* @end */
9296

0 commit comments

Comments
 (0)