Setting the file. One moment.
Skill 02 · Stitch::react Native
Subchapter 2.8
resources/component-template.tsx
TypeScript24 lines498 B
import React from 'react';
import { View, StyleSheet } from 'react-native';
export interface StitchComponentProps {
readonly children?: React.ReactNode;
readonly testID?: string;
}
export const StitchComponent: React.FC<StitchComponentProps> = ({
children,
testID,
}) => {
return (
<View style={styles.container} testID={testID} accessibilityRole="none">
{children}
</View>
);
};
const styles = StyleSheet.create({
container: {},
});
export default StitchComponent;