Issue
I am getting this error on react native IOS,
- node_modules/expo/build/logs/LogSerialization.js:166:14 in _captureConsoleStackTrace
- node_modules/expo/build/logs/LogSerialization.js:41:24 in serializeLogDataAsync
- ... 9 more stack frames from framework internals
import { ToastAndroid } from 'react-native' ToastAndroid.show('Somthing!', ToastAndroid.SHORT);
Solution
you are trying to use AndroidToast on IOS platform.
edit ur code so it only execute on Android Platform using Platform.OS
if (Platform.OS == 'android'){
//ur android code here
}
Answered By - Sa-Eddin
Answer Checked By - David Marino (JavaFixing Volunteer)