question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[0.25.1] Unfocussed Warning Yellowbox

See original GitHub issue

Using Mac, RN 0.25.1, problem occurs on iOS and Android. After upgrading to 0.25.1 I get the warning that ReactNative.createElement is deprecated. I have scanned every file I use and I do not use the deprecated ReactNative.createElement. Is it possible that this error is coming from node_modules? I can’t see how I’d get it any other way. If so, it shouldn’t be alerting me about node_modules using deprecated syntax right? Or at the least, can this give me a line number/file? I have nothing to go on for fixing this warning.

simulator screen shot may 4 2016 5 53 44 pm

https://github.com/infinitered/ignite/tree/master/ignite-base createElement is used once, and comes from react as warning wants. Still get warning.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:20 (14 by maintainers)

github_iconTop GitHub Comments

8reactions
Jiafancommented, May 6, 2016

I solved it like this .

import React, { Component } from 'react';

import { StyleSheet,TouchableHighlight,Text } from 'react-native';

Just do what the warning telling us to do.

5reactions
agatcommented, May 6, 2016

Hello i have similar error. react 0.14.8, react-native 0.25.1

ExceptionsManager.js:76 Warning: ReactNative.Component is deprecated. Use React.Component from the "react" package instead. in Chrome console.

You can reproduce this with minimal code:

index.ios.js

import React, {
    Component
} from 'react';
import {
    Text,
    AppRegistry
} from 'react-native';

class App extends Component {
    render () {
        return (
            <Text>{'Hello'}</Text>
        );
    };
};

const app = () => {
    AppRegistry.registerComponent('pn', () => App);
}

app('ios');
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you hide the warnings in React Native iOS simulator?
According to React Native Documentation, you can hide warning messages by setting disableYellowBox to true like this: console.disableYellowBox = true; ...
Read more >
[Resolve]-How do you hide the warnings in React Native iOS ...
According to React Native Documentation, you can hide warning messages by setting disableYellowBox to true like this: console.disableYellowBox = true; ...
Read more >
Disable the Yellow Box in React Native - Code Daily
The Yellow warning box in React Native can be both helpful and annoying. There are many errors that can be ignored but end...
Read more >
administrator's guide - TRASSIR
Warning about the features of the function, requiring mandatory reading and/or ... rate 0.25(1 frame in 4 seconds), and for the objects moving...
Read more >
How can I improve this GSAP particle animation code?
The yellow box is canvas using the STARS technique, and the black dot is the ... 4K/5K, and a lot of phones, the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found