Skip to content

Commit cb0c55d

Browse files
authored
Fix TypeScript definition file
The React import was previously incorrect, causing compile failures in React Native projects that utilize TypeScript.
1 parent d833315 commit cb0c55d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Definitions by: Kyle Roach <https://github.com/iRoachie>
44
// TypeScript Version: 2.3.2
55

6-
import React from 'react'
6+
import * as React from 'react'
77
import { ScrollViewProperties, ListViewProperties } from 'react-native'
88

99
interface KeyboardAwareProps {
@@ -73,4 +73,4 @@ interface KeyboardAwareScrollViewProps extends KeyboardAwareProps, ScrollViewPro
7373

7474
export class KeyboardAwareMixin {}
7575
export class KeyboardAwareListView extends React.Component<KeyboardAwareListViewProps, null> { }
76-
export class KeyboardAwareScrollView extends React.Component<KeyboardAwareScrollViewProps, null> { }
76+
export class KeyboardAwareScrollView extends React.Component<KeyboardAwareScrollViewProps, null> { }

0 commit comments

Comments
 (0)