I have that code
`
import * as React from ‘react’;
import { View, Text } from ‘react-native’;
const App: React.FC = () => {
console.log(‘Render’);
React.useEffect(() => {
console.log(‘Before’);
fetch('https://google.com/').then(res => {
console.log('Test');
console.log('res', res);
});
console.log('After');
}, []);
return (
<View
style={{
padding: 64,
}}
>
Test2
);
};
export default App;
`
And my log console don’t show anything… No logs, no hot reload…
But if i check flipper for network requests – it looks fine, what can i do, to fix it?
That problem occurs when i try to modify my tests (jest). After that – all my fetch functions doesn’t call a “then” or “await”. Also axios do the same.
When i checkout back (before changes) – it doesn’t work. BUT!!! if i clone my project again, checkout back (before changes), then npm i && cd ios && pod install && cd .. && npm run ios – that will be work fine.
But when i switch back to branch with fixes – problem occurs and checkout back does nothing
Ask me for another files which u need to read, cuz project is under NDA, and i can’t reproduce this behavior on a simple project