-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Platform.OS returns 'android' when running in iOS device #17518
Comments
Can't reproduce this. Have you run android version of the app before testing in android? Did you close the packager/debugger - this shouldn't matter though. |
Are you sure it's returning |
@froatsnook yes tried that too it still prints |
@compojoom yes android works fine as expected. the same code when i try to run for ios is giving the android output instead of ios output I tried |
Sorry it was my mistake in render method i had given |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13.2
Node: 8.9.2
Yarn: Not Found
npm: 5.5.1
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4408382
Packages: (wanted => installed)
react: 16.0.0-beta.5 => 16.0.0-beta.5
react-native: 0.50.3 => 0.50.3
Target Platform: iOS (8.0)
Steps to Reproduce
index.js
Expected Behavior
Console Log Output: ios
Actual Behavior
Console Log Output:
Simulator Output:
![screen shot 2018-01-10 at 6 15 34 pm](https://user-images.githubusercontent.com/34880490/34773715-b5c77e2e-f632-11e7-81b4-082c1461f547.png)
checkInitialPermissions is the function to be executed only on android. But its executed on iOS.
Reproducible Demo
Follow steps to reproduce
The text was updated successfully, but these errors were encountered: