{"size": 1706, "ext": "js", "max_stars_repo_path": "App.js", "max_stars_repo_name": "hoxton314/react-native-geo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "App.js", "max_issues_repo_name": "hoxton314/react-native-geo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "App.js", "max_forks_repo_name": "hoxton314/react-native-geo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.4626865672, "max_line_length": 119, "alphanum_fraction": 0.6313012896}
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import ListScreen from "./components/ListScreen"
import MainScreen from "./components/MainScreen"
import MapScreen from './components/MapScreen';
export default class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      data: '',
    }
  }

  render() {
    const Stack = createNativeStackNavigator();

    return (
      <NavigationContainer>
        <Stack.Navigator>
          <Stack.Screen name="main" component={MainScreen} options={screenOpt.main} />
          <Stack.Screen name="list" component={ListScreen} options={screenOpt.list} />
          <Stack.Screen name="map" component={MapScreen} options={screenOpt.map} initialParams={{ mapData: 'test' }} />
        </Stack.Navigator>
      </NavigationContainer>
    );
  }
}

const screenOpt = {
  list: {
    title: 'Zapis pozycji',
    headerStyle: {
      backgroundColor: '#3f5ca8',
    },
    headerTintColor: '#ffffff',
    headerTitleStyle: {
      fontWeight: 'bold',
    },
    //headerShown: false
  },
  map: {
    title: 'Map',
    headerStyle: {
      backgroundColor: '#3f5ca8',
    },
    headerTintColor: '#ffffff',
    headerTitleStyle: {
      fontWeight: 'bold',
    },
    headerShown: true
  },
  main: {
    title: 'Register Node App',
    headerStyle: {
      backgroundColor: '#3f5ca8',
    },
    headerTintColor: '#ffffff',
    headerTitleStyle: {
      fontWeight: 'bold',
    },
    headerShown: false
  },
}
