Hello, I am unable to open drawer navigation with button or get anything touch related to work after navigating to one of my screens. Other screens work fine and there is not much difference between each screen.
Code:
import React, {useState} from 'react';
import { StyleSheet, Text, View, Button, Image, PixelRatio, ScrollView, TouchableOpacity } from 'react-native';
import { enableScreens } from 'react-native-screens';
import Header from './Header.js';
import Svg, {Path} from 'react-native-svg';
import {RadioButton} from 'react-native-paper';
enableScreens();
const styles = StyleSheet.create({
image: {
height: 1000 / PixelRatio.get(),
width: 1100 / PixelRatio.get(),
resizeMode: 'contain',
},
radioOne: {
flex: 1,
right: 75,
marginBottom: 75,
},
container: {
marginBottom: 16,
},
scrollView: {
marginHorizontal: 20,
},
button: {
top: 1000,
}
});
const fun = () => {
alert("Hello");
};
//x1 = start of the Line
//x2 = end of the Line
//y1 = start of the line on y axis
//y2 = end of the line on y axis
export default function Barrow({ navigation }) {
const map_change = "./barrows.jpg";
let studentService_Medical = "M93 50 L93 180 L60 180 L60 170";
let studentService_union = "M300 260 L185 260 L185 270";
return (
<><Header title='Barrow' navigation={navigation} />
<View style={{ flex: 1, paddingTop: '15%', position: 'absolute'}}>
<Image source={require(map_change)} style={styles.image}/>
<ScrollView style={styles.container}>
</ScrollView>
</View>
<View>
<Svg>
<Path d={studentService_union} fill="none" stroke="red" width="10" />
</Svg>
</View>
</>
);
}