Skip to content

Commit 8bf7fb7

Browse files
committed
RealmInputScreen [nfc]: Move variable declaration to top of block
1 parent 03da3fa commit 8bf7fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/start/RealmInputScreen.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type Props = $ReadOnly<{|
2222
|}>;
2323

2424
export default function RealmInputScreen(props: Props): Node {
25+
const { navigation } = props;
26+
2527
const [progress, setProgress] = useState<boolean>(false);
2628
const [realmInputValue, setRealmInputValue] = useState<string>('');
2729
const [error, setError] = useState<string | null>(null);
@@ -53,8 +55,6 @@ export default function RealmInputScreen(props: Props): Node {
5355
}
5456
}, [realmInputValue]);
5557

56-
const { navigation } = props;
57-
5858
const styles = {
5959
input: { marginTop: 16, marginBottom: 8 },
6060
hintText: { paddingLeft: 2, fontSize: 12 },

0 commit comments

Comments
 (0)