mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Fix regex
This commit is contained in:
		| @@ -64,8 +64,8 @@ export const Index: React.FC = () => { | ||||
|                 length, | ||||
|                 [length - 1]: last | ||||
|               } = navigation.dangerouslyGetState().history | ||||
|               navigation.navigate(last.key.split(new RegExp(/(.*?)-/))[1], { | ||||
|                 screen: 'PostToot' | ||||
|               navigation.navigate(last.key.split(new RegExp(/(.*)-/))[1], { | ||||
|                 screen: 'Screen-Shared-Compose' | ||||
|               }) | ||||
|             } | ||||
|           })} | ||||
|   | ||||
| @@ -164,7 +164,7 @@ const postReducer = (state: PostState, action: PostAction): PostState => { | ||||
|   } | ||||
| } | ||||
|  | ||||
| const PostToot: React.FC = () => { | ||||
| const Compose: React.FC = () => { | ||||
|   const navigation = useNavigation() | ||||
|  | ||||
|   const [hasKeyboard, setHasKeyboard] = useState(false) | ||||
| @@ -305,4 +305,4 @@ const PostToot: React.FC = () => { | ||||
| } | ||||
| // ;(PostMain as any).whyDidYouRender = true | ||||
|  | ||||
| export default PostToot | ||||
| export default Compose | ||||
|   | ||||
| @@ -4,7 +4,7 @@ import ScreenSharedAccount from 'src/screens/Shared/Account' | ||||
| import ScreenSharedHashtag from 'src/screens/Shared/Hashtag' | ||||
| import ScreenSharedToot from 'src/screens/Shared/Toot' | ||||
| import ScreenSharedWebview from 'src/screens/Shared/Webview' | ||||
| import PostToot from 'src/screens/Shared/Compose' | ||||
| import Compose from 'src/screens/Shared/Compose' | ||||
| import { TypedNavigator } from '@react-navigation/native' | ||||
| import { NativeStackNavigationOptions } from 'react-native-screens/lib/typescript' | ||||
| import { | ||||
| @@ -62,9 +62,9 @@ const sharedScreens = ( | ||||
|       // })} | ||||
|     />, | ||||
|     <Stack.Screen | ||||
|       key='Screen-Shared-PostToot' | ||||
|       name='Screen-Shared-PostToot' | ||||
|       component={PostToot} | ||||
|       key='Screen-Shared-Compose' | ||||
|       name='Screen-Shared-Compose' | ||||
|       component={Compose} | ||||
|       options={{ | ||||
|         stackPresentation: 'fullScreenModal' | ||||
|       }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user