{"size": 561, "ext": "js", "max_stars_repo_path": "src/HomeScreen.js", "max_stars_repo_name": "mj-studio-sample/react-native-native-module-example", "max_stars_repo_stars_event_min_datetime": "2020-12-04T08:21:10.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-17T16:41:25.000Z", "max_issues_repo_path": "src/HomeScreen.js", "max_issues_repo_name": "mj-studio-sample/react-native-native-module-example", "max_issues_repo_issues_event_min_datetime": "2020-08-26T05:51:21.000Z", "max_issues_repo_issues_event_max_datetime": "2020-08-26T05:54:46.000Z", "max_forks_repo_path": "src/HomeScreen.js", "max_forks_repo_name": "mym0404/react-native-native-module-example", "max_forks_repo_forks_event_min_datetime": "2020-12-04T09:32:26.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-22T10:23:48.000Z"}
{"max_stars_count": 17, "max_issues_count": 1, "max_forks_count": 5, "avg_line_length": 31.1666666667, "max_line_length": 80, "alphanum_fraction": 0.6916221034}
import React from 'react';
import {SafeAreaView} from 'react-native-safe-area-context';
import {Button} from 'react-native';

const HomeScreen = ({navigation: {navigate}}) => {
  const navigateCalculator = () => navigate('CalculatorScreen');
  const navigateMyText = () => navigate('MyTextScreen');

  return (
    <SafeAreaView style={{flex: 1}}>
      <Button title="Calculator (Native Module)" onPress={navigateCalculator} />
      <Button title="MyText (Native Component)" onPress={navigateMyText} />
    </SafeAreaView>
  );
};

export default HomeScreen;
