We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My Code in React Native is below, but i got "Can't find variable:Symbol"
import 'react-native-browser-polyfill'; import React, { Component } from 'react'; import * as Colyseus from "colyseus.js"; import { Text, View, AsyncStorage } from 'react-native'; window.localStorage = AsyncStorage;
export default class App extends Component<{}> { render() { return ( ... ); } }
The text was updated successfully, but these errors were encountered:
Hi @Goblin-Knight,
Are you using Android for testing? This comment explains the problem: facebook/react-native#15805 (comment)
You can fix this by requiring es6-symbol polyfill:
es6-symbol
npm install es6-symbol
Import the polyfill in your main.js:
main.js
require('es6-symbol/implement');
Cheers
Sorry, something went wrong.
Many Thank!!! yes, i am using Android for testing, thank @endel to told me the problem that cause by enable debugger feature, let start develop~ :)
You're welcome!
No branches or pull requests
My Code in React Native is below, but i got "Can't find variable:Symbol"
import 'react-native-browser-polyfill';
import React, { Component } from 'react';
import * as Colyseus from "colyseus.js";
import {
Text, View, AsyncStorage
} from 'react-native';
window.localStorage = AsyncStorage;
export default class App extends Component<{}> {
render() {
return (
...
);
}
}
The text was updated successfully, but these errors were encountered: