Reputation: 281
I recently ejected my react native expo app, and i'm trying to launch it on my ios simulator. but i get this error when i do react-native run-ios.the code was working fine using expo and there was no error:
Here is my RdvScreen.js code:
import React from 'react';
import {View,Text,Button,StyleSheet,} from 'react-native'
import { ProgressSteps, ProgressStep } from 'react-native-progress-steps';
import Recap from './RécapitulatifScreen';
import MyComponent from '../Components/RadioButton';
import Identification from './IdentificationScreen';
class RDV extends React.Component {
render(){
return (
<View style={styles.container}>
<ProgressSteps>
<ProgressStep label="Identification " nextBtnText="Suivant" >
<Identification />
</ProgressStep>
<ProgressStep label=" Motif" nextBtnText="Suivant" previousBtnText="Précédent" >
<View style={{ alignItems: 'center' }}>
<MyComponent/>
</View>
</ProgressStep>
<ProgressStep label="Récapitulatif" nextBtnText="Suivant" previousBtnText="Précédent" >
<Recap/>
</ProgressStep>
<ProgressStep label="Confirmation" previousBtnText="Précédent" finishBtnText='Confirmer' onSubmit={()=> alert("Félicitation, votre rendez-vous est confirmé !")} >
<View style={{ alignItems: 'center' }}>
<Text>Confirmez votre rendez-vous</Text>
</View>
</ProgressStep>
</ProgressSteps>
</View>
);
}
}
i'll appreciate your help
Upvotes: 1
Views: 5922
Reputation: 543
You need to change two files.
screens -> RécapitulatifScreen to RecapitulatifScreen
opne RdvScreen.js under screen folder and replace line number 5 with
import Recap from './RecapitulatifScreen';
Upvotes: 2
Reputation: 683
Definitely a Packager issue
Brute force solution
watchman watch-del-all && rm -rf node_modules/ && npm cache clean --force&& npm install && npm start -- --reset-cache
or
npx react-native start --reset-cache
Upvotes: 1