Skip to content

Commit 6b381b1

Browse files
committed
Fix mobile types
1 parent 0e0d383 commit 6b381b1

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

app/src/components/buttons/AbstractButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface AbstractButtonProps extends ButtonProps {
1919
bgColor: string;
2020
borderColor?: string;
2121
color: string;
22-
onPress?: ((e: any) => void) | null | undefined;
22+
onPress?: (e: any) => void;
2323
}
2424

2525
const { trackEvent: analyticsTrackEvent } = analytics();

app/src/components/native/RCTFragment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function dispatchCommand(
3333
try {
3434
UIManager.dispatchViewManagerCommand(
3535
viewId,
36-
UIManager.getViewManagerConfig(fragmentComponentName).Commands[
36+
(UIManager.getViewManagerConfig(fragmentComponentName) as any).Commands[
3737
command
3838
].toString(),
3939
[viewId],

app/src/screens/passport/PassportNFCScanScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const PassportNFCScanScreen: React.FC<PassportNFCScanScreenProps> = ({}) => {
286286
if (Platform.OS === 'android' && emitter) {
287287
const subscription = emitter.addListener(
288288
'NativeEvent',
289-
(event: string) => console.info(event),
289+
(event: any) => console.info(event),
290290
);
291291

292292
return () => {

app/src/screens/prove/ProveScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const ProveScreen: React.FC = () => {
4949
const [hasScrolledToBottom, setHasScrolledToBottom] = useState(false);
5050
const [scrollViewContentHeight, setScrollViewContentHeight] = useState(0);
5151
const [scrollViewHeight, setScrollViewHeight] = useState(0);
52-
const scrollViewRef = useRef<ScrollView>(null);
52+
const scrollViewRef = useRef<any>(null);
5353

5454
const isContentShorterThanScrollView = useMemo(
5555
() => scrollViewContentHeight <= scrollViewHeight,

app/tsconfig.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
{
22
"extends": "@react-native/typescript-config",
33
"compilerOptions": {
4-
"lib": ["dom", "esnext"],
4+
"lib": [
5+
"dom",
6+
"esnext"
7+
],
58
"resolveJsonModule": true,
69
"esModuleInterop": true,
7-
"customConditions": ["react-native-strict-api"],
8-
"skipLibCheck": true
10+
"customConditions": [
11+
"react-native-strict-api"
12+
],
13+
"skipLibCheck": true,
14+
"allowJs": false
915
},
1016
"exclude": [
1117
"node_modules",

0 commit comments

Comments
 (0)