Skip to content

Doesn't work with latest Expo #175

Description

@robertmylne

Bare bones expo project latest version and no toast.

import {router, Stack, useRouter} from "expo-router"
import {useEffect} from "react"
import { RootSiblingParent } from 'react-native-root-siblings';
import Toast from "react-native-root-toast"
import {Text, TouchableOpacity, View} from "react-native"

export default function RootLayout() {

	return (
		<RootSiblingParent>
			<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>
			<TouchableOpacity onPress={() => {
				Toast.show('Test', {
					duration: 5000 ,
				});
			}}>
				<Text>test</Text>
			</TouchableOpacity>
			</View>
		</RootSiblingParent>
	)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions