diff --git a/src/components/PingTest.tsx b/src/components/PingTest.tsx new file mode 100644 index 0000000..544ddf1 --- /dev/null +++ b/src/components/PingTest.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import { connect } from 'react-redux'; +import { createAction } from '@reduxjs/toolkit'; +import { Button } from 'react-native'; + +// Define the actions +const actions = { + ping: createAction('ping/PING', (arg: number) => ({ + payload: { arg }, + })), +}; + +// Define the props interface using typeof +interface Props { + ping: typeof actions.ping; +} + +// Define the functional component +const PingTestComponent: React.FC = ({ ping }) => { + return ( +