What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-28 18:00:04
react native navigation shared element
import { createSharedElementStackNavigator } from 'react-navigation-shared-element'; const stackNavigator = createSharedElementStackNavigator( { List: ListScreen, Detail: DetailScreen, }, { initialRouteName: 'List', } ); const AppCon... Add solution -
Javascript 2022-02-10 04:15:23
ReferenceError: You are trying to `import` a file after the Jest environment has been torn down.
Cearte a file mock.js on rootDir place this inside. file jest.useFakeTimers() now under setup "setupFiles": [ "./node_modules/react-native-gesture-handler/jestSetup.js", "<rootDir>/mock.js" //place here ], ... Add solution -
Javascript 2022-02-10 02:05:02
reactnaviataion change title
import * as React from 'react'; import { View, Text, Button } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; function HomeScreen({ navigation }) { ret... Add solution -
Shell/Bash 2022-01-30 22:40:18
Jest failed after upgrade to react-native 0.64
transformIgnorePatterns: [ - 'node_modules/(?!(jest-)?react-native|@react-native-community|@react-navigation)', + 'node_modules/(?!(jest-)?@?react-native|@react-native-community|@react-navigation)', ] this is happen in the the lastest jest lib in yo... Add solution -
Other 2022-01-29 13:07:10
type ErrorHandler = (error: mixed, isFatal: boolean) => void; ^^^^^^^^^^^^ SyntaxError: Unexpected identifier
transformIgnorePatterns: [ - 'node_modules/(?!(jest-)?react-native|@react-native-community|@react-navigation)', + 'node_modules/(?!(jest-)?@?react-native|@react-native-community|@react-navigation)', ] this is happen in the the lastest jest lib in you... Add solution -
Javascript 2022-01-25 10:45:39
react native get route name
import { useNavigation, useRoute } from '@react-navigation/native'; const Route = useRoute(); console.log(Route); // Object { // "key": "Home-rRl8EIxLOOm9rqd2N6RSZ", // "name": "Home", // "params": und... Add solution -
Javascript 2022-01-24 07:01:33
unexpected token react native stack navigation
Delete your yarn.lock/package-json.lock file and run yarn/npm install. Then try clearing cache with npx react-native start --reset-cache/expo start -c 1.Upgrade deps (https://reactnavigation.org/docs/troubleshooting/#im-getting-syntaxerror-in-react-navi... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5