Top "React-native" questions

React native is a JavaScript library used to build native mobile apps using React.

How can I insert a line break into a <Text> component in React Native?

I want to insert a new line (like \r\n, <br />) in a Text component in React Native. …

javascript text react-native newline
React Native android build failed. SDK location not found

I have error when i start running android What went wrong: A problem occurred evaluating project ':app'. > SDK …

android react-native
Unable to load script from assets index.android.bundle on windows

I'm trying to run my first React Native project for first time on my device (Android 4.2.2). And I get: unable …

android react-native react-native-android
How to clear react-native cache?

In react-native development, there are multiple caches used when the app is built: React-native packager cache Emulator cache Java side …

javascript java android reactjs react-native
How to do logging in React Native?

How can I log a variable in React Native, like using console.log when developing for web?

logging react-native
React Native: Possible unhandled promise rejection

I'm getting the following error: Possible unhandled promise rejection (id:0: Network request failed) Here's the promise code, I don't see …

react-native
Using an authorization header with Fetch in React Native

I'm trying to use fetch in React Native to grab information from the Product Hunt API. I've obtained the proper …

javascript oauth-2.0 react-native fetch-api
ReactNative: how to center text?

How to center Text in ReactNative both in horizontal and vertical? I have an example application in rnplay.org where …

reactjs flexbox react-native
How can I generate an apk that can run without server with react-native?

I've built my app, I can run it on my local emulator (and also on my android device within the …

javascript android react-native mobile-application
Error:(23, 17) Failed to resolve: junit:junit:4.12

Why is it that every time I create a new project in Android Studio, it always comes up with: Error:(23, 17) …

java android react-native junit