Skip to content

Commit 6b8b8ef

Browse files
sandersnmmazzarolo
authored andcommitted
fix: Further Improve compatibility of tsconfig.json (#372)
Turn off allowSyntheticDefaultImports, which not all consumers are guaranteed to have. This requires changing ```ts import PropTypes from 'prop-types' ``` to ```ts import * as PropTypes from 'prop-types' ```
1 parent f8bd31c commit 6b8b8ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
View,
1616
ViewStyle,
1717
} from 'react-native';
18-
import PropTypes from 'prop-types';
18+
import * as PropTypes from 'prop-types';
1919
import * as animatable from 'react-native-animatable';
2020
import {Animation, CustomAnimation} from 'react-native-animatable';
2121

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"compilerOptions": {
1010
"lib": ["es5", "es6", "esnext.asynciterable"],
11-
"allowSyntheticDefaultImports": true,
11+
"allowSyntheticDefaultImports": false,
1212
"esModuleInterop": false,
1313
"jsx": "react",
1414
"moduleResolution": "node",

0 commit comments

Comments
 (0)