14.3 C
New York
Tuesday, March 25, 2025

ios – (NOBRIDGE) WARN [Layout children]: No route named “inspection/[projectId]/[itemId]” exists in nested youngsters


(NOBRIDGE) WARN [Layout children]: No route named “inspection/[projectId]/[itemId]” exists in nested youngsters: [“+not-found”, “login”, “new-project”, “_sitemap”, “(auth)”, “(tabs)”, “add-item/[projectId]”, “inspection-details/https://stackoverflow.com/q/79534647”, “inspection”, “venture/https://stackoverflow.com/q/79534647”] [Component Stack]

/inspection/[projectId]/[itemId].tsx

export default operate InspectionScreen() {
  const { projectId, itemId } = useLocalSearchParams();
  const router = useRouter();
  
  const [itemName, setItemName] = useState('');
  const [serialNumber, setSerialNumber] = useState(null);
  const [isScannerVisible, setIsScannerVisible] = useState(false);
  const [hasPermission, setHasPermission] = useState(null);
  const [scanned, setScanned] = useState(false);
  const [isLoading, setIsLoading] = useState(true);
  const [questions, setQuestions] = useState([]);
  const [answers, setAnswers] = useState([]);
  const [isSaving, setIsSaving] = useState(false);
  const [refreshing, setRefreshing] = useState(false);

  // Memoize the loadData operate to stop pointless recreations
  const loadData = useCallback(async () => {
    if (!projectId || !itemId) return;

    strive {
      setIsLoading(true);
      
      // Fetch merchandise particulars
      const merchandise = await db.getItem(itemId as string);
      if (merchandise) {
        setItemName(merchandise.identify);
        setSerialNumber(merchandise.serial_number);
      }

That is how I name the merchandise inspection to save lots of

      Alert.alert(
        'Success',
        `Inspection ${standing} efficiently`,
        [{ 
          text: 'OK', 
          onPress: () => {
            router.push({
              pathname: '/project/https://stackoverflow.com/q/79534647',
              params: { id: projectId as string, refresh: 'true' }
            });
          }
        }]
      );

That is my code to entry the merchandise inspection in

venture/https://stackoverflow.com/q/79534647.tsx


           router.push(`/inspection/${id}/${merchandise.id}`)}
          >
            
            Examine
          

I’ve tried creating a brand new _layout.tsx for the folder [projectId] however nonetheless nothing.

It shows the proper merchandise to examine on net, however at any time when I am going to Expo Go, it reveals “This display screen would not exist.”

Please assist!

Any assist could be wonderful!

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles