Skip to content

Commit 2513ae1

Browse files
refactor: remove redundant PropsWithChildren
1 parent ffc63d4 commit 2513ae1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/default/src/components/InputField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, { PropsWithChildren } from 'react';
1+
import React from 'react';
22

33
import { KeyboardTypeOptions, StyleSheet, TextInput } from 'react-native';
44

5-
interface InputFieldProps extends PropsWithChildren {
5+
interface InputFieldProps {
66
placeholder?: string;
77
value?: string;
88
onChangeText?: (text: string) => void;

examples/default/src/components/NestedView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, { PropsWithChildren } from 'react';
1+
import React from 'react';
22

33
import { Text } from 'native-base';
44
import { StyleSheet, View } from 'react-native';
55

6-
interface NestedViewProps extends PropsWithChildren {
6+
interface NestedViewProps {
77
children?: React.ReactNode;
88
depth: number;
99
breadth?: number;

0 commit comments

Comments
 (0)