-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (32 loc) · 770 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react';
import {
View,
TouchableOpacity,
Text,
SafeAreaView,
ScrollView,
} from 'react-native';
import Popover from 'react-native-popover-view';
function App() {
return (
<SafeAreaView>
<Popover
from={
<TouchableOpacity>
<Text>Press here to open popover!</Text>
</TouchableOpacity>
}>
<View style={{height: 150}}>
<ScrollView onScroll={event => console.log('hbvhbv', event)}>
<View>
{[...new Array(40)].map((item, index) => (
<Text>{`${index}. Welcome to React native`}</Text>
))}
</View>
</ScrollView>
</View>
</Popover>
</SafeAreaView>
);
}
export default App;