page.tsx 701 B

123456789101112131415161718192021222324252627
  1. import { router } from 'expo-router';
  2. import React from 'react';
  3. import { Button, Platform, View } from 'react-native';
  4. export default function TestPage() {
  5. return <View>{/* Put your testing components below */}</View>;
  6. }
  7. export const GoTestPageBTN = () => {
  8. const onClick = () => {
  9. router.push('/test');
  10. };
  11. return (
  12. <View
  13. className={`absolute top-9 left-7 rounded-sm z-10 ${
  14. Platform.OS == 'ios' ? 'bg-black' : ''
  15. }`}
  16. >
  17. <Button
  18. onPress={onClick}
  19. color={Platform.OS == 'ios' ? 'white' : 'black'}
  20. title="Go Test Page"
  21. />
  22. </View>
  23. );
  24. };