Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

React Native Online Test

Topics Covered

  • Components and Props
  • Javascript XML JSX
  • Static Image Resources
  • Network Images
  • Styling
  • Interactivity
  • React Native AppRegistry

Useful for hiring

  • React Native Developer
  • React Native Mobile Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"Interview Mocha's assessments eliminated reliance on resumes and reduced our time to hire by half. Now we spend time only on relevant candidates and take data-driven hiring decisions."

George Nichkov, Gett,
Global Analytics Team Lead
Question

Consider a scenario in which you want to save users when they login such that next time they open the application, they don't have to log in again. Which of the following code is ideal in this situation?

Answer
    • _storeUser = async () => {
          try {
          await AsyncStorage.setItem('user', userDetail);
          } catch (error) {
          // Error saving data
          }
      };
       

    • _storeUser = async () => {
          try {
          await AsyncStorage.saveItem('user', userDetail);
          } catch (error) {
          // Error saving data
          }
      };
       

    • _storeUser = async () => {
          try {
          await AsyncStorage.set('user', userDetail);
          } catch (error) {
          // Error saving data
          }
      };
       

    • _storeUser = async () => {
          try {
          await AsyncStorage.save('user', userDetail);
          } catch (error) {
          // Error saving data
          }
      };
       

Question

You have been tasked to write a script for logging users out automatically after 30 seconds. What is the correct code for doing this in React Native considering the following code?

this.state = {
    sessionExpired: false
    };

Answer
    • setTimeout(function(){this.setState({sessionExpired: true})}, 30000);
       

    • setTimeout(() => {this.setState({sessionExpired: true})}, 30000)
       

    • setTimeout(function(session){this.setState({sessionExpired: session})}, 30000);
       

    • setTimeout((session) => {this.setState({sessionExpired: session})}, 30000)
       

Test details:

The React Native online test enables employers and recruiters to identify potential prospects by evaluating working skills and job readiness. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The online React Native test may contain MCQs (Multiple Choice Questions), MAQs (Multiple Answer Questions), Fill in the Blank, Descriptive, Whiteboard Questions, Audio / Video Questions, True or False.

Test Duration: 30 minutes

19 Application Questions

Test description:

React Native is an open source framework that enables the development of apps for iOS and Android with React delivering the same performance as purely native apps do.

React Native online test is created & validated by experienced subject matter experts (SMEs) to evaluate knowledge of React Native developer. Online React Native test helps recruiters and hiring managers invalidating the React Native app development skills of the applicant before an interview.

The React Native advanced test helps to screen the candidates who possess traits as follows: 

  1. Knowledgeable in both iOS and Android development and expert-level in at least one
  2. Understanding of Xamarin and Unity is a plus
  3. Experience working in an agile software development environment
  4. Knowledge of JavaScript testing frameworks

Our React Native skills test reports will give a detailed analysis of each candidate and will provide the analytical data which helps you to hire better and faster. To know about the candidate experience, we have introduced the new feature called candidate feedback module in our React Native pre-employment test so that it will ensure you that the candidates are getting an excellent experience while attempting the test.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO