Skip to content

Commit 522ba03

Browse files
committed
chore(app): lock orientation on search
1 parent 147f08e commit 522ba03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/screens/SearchScreen/SearchScreen.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
storageService,
1414
} from '@app/services';
1515
import Entypo from '@expo/vector-icons/build/Entypo';
16+
import * as ScreenOrientation from 'expo-screen-orientation';
1617
import { useEffect, useRef, useState } from 'react';
1718
import {
1819
FlatList,
@@ -40,6 +41,8 @@ export function SearchScreen() {
4041
[],
4142
);
4243

44+
ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP);
45+
4346
useHeader({
4447
title: 'Search',
4548
});

0 commit comments

Comments
 (0)