Skip to content

Commit 5ed6e96

Browse files
committed
Fix RadioGroup typings to extend our ViewProps and not React Native's
1 parent a4ae160 commit 5ed6e96

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

generatedTypes/components/radioButton/RadioGroup.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { PureComponent, GetDerivedStateFromProps } from 'react';
2-
import { ViewProps } from 'react-native';
32
import { BaseComponentInjectedProps, ForwardRefInjectedProps } from '../../commons/new';
3+
import { ViewProps } from '../view';
44
export declare type RadioGroupProps = ViewProps & {
55
/**
66
* The initial value of the selected radio button

src/components/radioButton/RadioGroup.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import _ from 'lodash';
22
import React, {PureComponent, GetDerivedStateFromProps} from 'react';
3-
import {ViewProps} from 'react-native';
43
import {
54
asBaseComponent,
65
forwardRef,
76
BaseComponentInjectedProps,
87
ForwardRefInjectedProps
98
} from '../../commons/new';
10-
import View from '../view';
9+
import View, {ViewProps} from '../view';
1110
import RadioGroupContext from './RadioGroupContext';
1211

1312
export type RadioGroupProps = ViewProps & {

0 commit comments

Comments
 (0)