Skip to content
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

[React Native] navigator.project === 'ReactNative' insufficient. #15

Open
iwasaki-kenta opened this issue Oct 27, 2016 · 1 comment
Open

Comments

@iwasaki-kenta
Copy link

iwasaki-kenta commented Oct 27, 2016

Hi,

After importing the babel polyfill and updating to the latest ViewModel to test on React Native, it seems that navigator.project is always undefined.

An alternative solution recommended is checking if React.View exists: http://stackoverflow.com/a/31738222/4589486

Temporary workaround:

index.android.js

import "babel-polyfill";

import React from "react";
import {AppRegistry} from "react-native";
import Root from "./app";

navigator.project = "ReactNative";

AppRegistry.registerComponent('Cheatsheet', () => Root);

Regards,
Kenta Iwasaki

@ManuelDeLeon
Copy link
Owner

Thx . I'll update it tomorrow.

On Oct 26, 2016 11:32 PM, "Kenta Iwasaki" notifications@github.com wrote:

Hi,

After importing the babel polyfill and updating to the latest ViewModel to
test on React Native, it seems that navigator.project is always undefined.

An alternative solution recommended is checking if React.View exists:
http://stackoverflow.com/a/31738222/4589486

Regards,
Kenta Iwasaki


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#15, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AED31u23Ap-3JQR1mGGyNenvYuGJfMIpks5q4DdbgaJpZM4Kh9Wq
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants