Skip to content

Commit 2f534d8

Browse files
authored
fix: Fix property React doesn't exist error (#434)
1 parent f75a4d6 commit 2f534d8

File tree

7 files changed

+3
-7
lines changed

7 files changed

+3
-7
lines changed

src/components/ImageDetail/components/Background/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import type { ColorValue } from 'react-native'
32
import { Animated, StyleSheet } from 'react-native'
43

src/components/ImageDetail/components/DisplayImageArea/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ReactNode } from 'react'
2-
import React from 'react'
32
import { Animated, Dimensions, Platform, StatusBar, StyleSheet } from 'react-native'
43

54
const styles = StyleSheet.create({

src/components/ImageDetail/components/Footer/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ReactNode } from 'react'
2-
import React from 'react'
32
import { Animated, StyleSheet } from 'react-native'
43

54
const styles = StyleSheet.create({

src/components/ImageDetail/components/Header/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ReactNode } from 'react'
2-
import React from 'react'
32
import { Animated, SafeAreaView, StatusBar, StyleSheet, Text, TouchableOpacity } from 'react-native'
43

54
const styles = StyleSheet.create({

src/components/ImageDetail/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ReactNode } from 'react'
2-
import React, { forwardRef, useEffect, useImperativeHandle, useRef } from 'react'
2+
import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react'
33
import type { ImageResizeMode, StyleProp, ImageStyle, ImageSourcePropType } from 'react-native'
44
import { Dimensions, Animated, Modal } from 'react-native'
55

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ReactNode, RefObject } from 'react'
2-
import React, { createRef, forwardRef, useImperativeHandle, useRef, useState } from 'react'
2+
import { createRef, forwardRef, useImperativeHandle, useRef, useState } from 'react'
33
import type { StyleProp, ImageStyle, ImageResizeMode, ImageSourcePropType } from 'react-native'
44
import { Animated, View } from 'react-native'
55

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"lib": ["es6", "dom", "es2016", "es2017"],
66
"sourceMap": true,
77
"allowJs": false,
8-
"jsx": "react-native",
8+
"jsx": "react-jsx",
99
"declaration": true,
1010
"declarationMap": true,
1111
"moduleResolution": "node",

0 commit comments

Comments
 (0)