Progress.js 1.12 KB
Newer Older
Muthumal S.A.D.M.'s avatar
Muthumal S.A.D.M. committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import React, {Component} from 'react';
import {
  StyleSheet,
  TouchableOpacity,
  View,
  Text,
  Pressable,
  SafeAreaView,
  ScrollView,
  Image,
  ImageBackground,
  Dimensions,
  Animated,
  Easing,
  NativeModules,
  Button,
} from 'react-native';
import {useNavigation} from '@react-navigation/native';
Muthumal S.A.D.M.'s avatar
Muthumal S.A.D.M. committed
19

Muthumal S.A.D.M.'s avatar
Muthumal S.A.D.M. committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
export default function Progress() {
  const Separator = () => <View style={styles.separator} />;
  const navigation = useNavigation();
  return (
    <SafeAreaView style={styles.container}>
      <View>
        <Button
          title="Color Activity"
          onPress={() =>
            navigation.navigate('PrimaryType', {
              title: 'Primary Activities',
              id: 1,
            })
          }></Button>
      </View>
      <Separator />

      <View>
        <Button title="Reading Activity"></Button>
      </View>
      <Separator />
      <View>
        <Button title="Memory Activity"></Button>
      </View>
    </SafeAreaView>
  );
}
const styles = StyleSheet.create({
  container: {
    flex: 1,
    marginVertical: 20,
    marginHorizontal: 15,
  },
  separator: {
    marginVertical: 10,
  },
});