Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all 28460 articles
Browse latest View live

Load image from phone local storage of android react-native + expo

$
0
0

My code does not gives any error when executed over expo (react-native) but the image is also not loading. The path I get from details of the image in android is "Internal storage/DCIM/images.jpeg" therefore searching over forums read a suggestion to replace Internal storage with "file:///storage/emulated/0/". But this too does not work. The only output I get is the Hello, world! text.My device is Huawei BG2-U01.

Hope I am not missing out on any basics.

import React, { Component } from 'react';import { Text, View,Image } from 'react-native';export default class HelloWorldApp extends Component {  render() {    return (<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}><Text>Hello, world!</Text><Image source={{uri:'file:///storage/emulated/0/DCIM/images.jpeg'}} style={{width: 60, height: 60}} /> </View>    );  }}

I did npx react-native run-android but doesn't works

$
0
0

I did that command to start the react-native application, but it returns that failure.

"Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.Use '--warning-mode all' to show the individual deprecation warnings.See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

FAILURE: Build failed with an exception.

  • Where:Build file 'C:\Users\Usuario\Desktop\soorteiooo\node_modules\react-native-reanimated\android\build.gradle' line: 89

  • What went wrong-A problem occurred configuring project ':react-native-reanimated'.

    SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'C:\Users\Usuario\Desktop\soorteiooo\android\local.properties'.

  • Try-Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

  • Where:Build file 'C:\Users\Usuario\Desktop\soorteiooo\node_modules\react-native-reanimated\android\build.gradle' line: 89

  • What went wrong-A problem occurred configuring project ':react-native-reanimated'.

    SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'C:\Users\Usuario\Desktop\soorteiooo\android\local.properties'.

  • Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s

at makeError (C:\Users\Usuario\Desktop\soorteiooo\node_modules\execa\index.js:174:9)at Promise.all.then.arr (C:\Users\Usuario\Desktop\soorteiooo\node_modules\execa\index.js:278:16)at process._tickCallback (internal/process/next_tick.js:68:7)"

Swiper with video or image on the card

$
0
0

I have a list of objects that contain a video or photo

I would like to make scrolling possible (up - down - up, something like in TikTok). Each card has a full-screen image or video.

For this I used the library:

https://www.npmjs.com/package/react-native-swiper

Scrolling works as intended, but there are other problems:

  • all objects load immediately (there should be some pagination)

  • all objects start immediately (when the video has sound then everyone starts playing)

Is there another useful solution or can something be done with this library?

Expo management menu from within the device/emulator without shaking device

$
0
0

I find shaking the phone to access the expo development menu to be inconvenient. It is difficult to get a feel of how I should shake my phone, and I feel awkward trying to peek if the menu appeared already while shaking.

During the application development phase it would be convenient to access the developer menu through a temporary GUI element. Does there exist a package that provides a component that allows accessing the developer menu by tapping or similar means? (I imagine it like a tiny floating button object that can be moved around, a little bit like Facebook messenger thing, but how it operates is really not that important.) If there is no such thing, then is there Expo APIs I could use to implement such a component by myself?

How to create wrapper or plugin for Android framework using React Native

$
0
0

Hi I am new to React Native, how can I create plugin or wrapper in React-Native using my own SDK or framework. I tried the below link https://mcro.tech/how-to-create-react-native-wrappers-for-native-sdks/

I am unable to understand how a wrapper class is created and how can it be used?Please anyone help me out of this. Any suggestions and solutions are highly appreciated. Thanks in advance !!

How to download data over bluetooth without hanging JavaScript thread

$
0
0

I am attempting to download lots of data from several Bluetooth devices at the same time. But, because there is so much data, the app hangs while the download is happening. My code functions roughly like this (pseudocode):

function BluetoothDownloadPage() {    const [data, setData] = useState({        device1: [],        device2: [],        device3: [],        device4: [],    });    async function fetchData(device) {        device.addListener(data => setData(newData=> [...data[device.getName()], newData]);        device.startDownload();    }    async function downloadFromAllDevices() {        fetchData(device1);        fetchData(device2);        fetchData(device3);        fetchData(device4);    }    return (<View><Text>{JSON.stringify(data)}</Text><Button onPress={downloadFromAllDevices}></Button></View>    );}

When new data is received from a device it is first stored in my custom Device class. Every second the device class sends a notification to the React components to update state (a progress bar).

I don't how how I can download data without hanging the JS thread. Each sensor sends 240 byte packets at a time, at a rate of approximately 8kb/s. This amounts to having to write the data to an array over 30 times per second, per device, and I think this is way too much for low-grade devices to handle.

Axios in react-native returns empty array of data but POST man returns some data

$
0
0

I have been working on a restaurant app and using Yelp as an API source.I am using Axios as the request rather than fetch.I am returned with a empty array when I use the location as 'delhi' which is a valid location because I get proper response with the POSTMAN

yelp.js

    const axios = require('axios');export default axios.create({  baseURL: 'https://api.yelp.com/v3/businesses',  headers: {    Authorization:'Bearer VALID KEY(working on POSTMAN)',  },});

screen.js

import React, {useState} from 'react';import {StyleSheet, View, Text} from 'react-native';import SearchB from '../reusableC/SearchB';import yelp from '../api/yelp';const Search = () => {  const [string, setString] = useState('');  const [results, setResults] = useState([]);  const searchApi = async () => {    const response = await yelp.get('/search', {      params: {        limit: 50,        location: string,      },    });    setResults(response.data.businesses);  };  return (<View><SearchB        style={styles.fontS}        string={string}        onTermChange={newString => setString(newString)}        onTermSubmit={() => console.log(results)}      /><Text> Searched :</Text><Text> {results.length}</Text><Text        style={{          fontSize: 20,          fontWeight: '400',          position: 'absolute',          top: 55,          left: 100,          right: 10,        }}>        {string}</Text></View>  );};const styles = StyleSheet.create({  fontS: {    fontSize: 20,  },});export default Search;

when I console log the results

[ ]is returned

I tried to make request via Postman and it returned valid data unlike in the Application.

react-native-webview: distinguish between window.location caused by script and user clicking the link

$
0
0

Is there a way in react-native-webview to distinguish between user-caused and script-caused navigations?

I see that onLoad[Start,End] and onNavigationStateChange events are fired in both cases. Also, if I add logging to WebViewClient.shouldOverrideUrlLoading() or WebViewClient.shouldInterceptRequest(), both fns are invoked if either window.location is changed inside a script, or if user clicks a link. So how can one distinguish these two?

Thanks!


React Native org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:createReleaseExpoManifest'

$
0
0

When I am trying to build the apk i m getting the above mentioned exception

The following command i had used in windows 10

gradlew assembleRelease --stacktrace

I can able to see run the code in both Android Simualtor and Expo Client as well.

Task :app:createReleaseExpoManifest FAILED

FAILURE: Build failed with an exception.

  • What went wrong:Execution failed for task ':app:createReleaseExpoManifest'.

    Process 'command 'cmd'' finished with non-zero exit value 1

  • Try:Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Stack Trace

* Exception is:org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:createReleaseExpoManifest'.        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:163)        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:156)        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)        at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)        at org.gradle.execution.plan.DefaultPlanExecutor.process(DefaultPlanExecutor.java:74)        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.executeWithServices(DefaultTaskExecutionGraph.java:178)        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph.execute(DefaultTaskExecutionGraph.java:154)        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:41)        at org.gradle.execution.DefaultBuildWorkExecutor.execute(DefaultBuildWorkExecutor.java:40)        at org.gradle.execution.DefaultBuildWorkExecutor.access$000(DefaultBuildWorkExecutor.java:24)        at org.gradle.execution.DefaultBuildWorkExecutor$1.proceed(DefaultBuildWorkExecutor.java:48)        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:49)        at org.gradle.execution.DefaultBuildWorkExecutor.execute(DefaultBuildWorkExecutor.java:40)        at org.gradle.execution.DefaultBuildWorkExecutor.execute(DefaultBuildWorkExecutor.java:33)        at org.gradle.execution.IncludedBuildLifecycleBuildWorkExecutor.execute(IncludedBuildLifecycleBuildWorkExecutor.java:36)        at org.gradle.execution.BuildOperationFiringBuildWorkerExecutor$ExecuteTasks.run(BuildOperationFiringBuildWorkerExecutor.java:56)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)        at org.gradle.execution.BuildOperationFiringBuildWorkerExecutor.execute(BuildOperationFiringBuildWorkerExecutor.java:41)        at org.gradle.initialization.DefaultGradleLauncher.runWork(DefaultGradleLauncher.java:236)        at org.gradle.initialization.DefaultGradleLauncher.doClassicBuildStages(DefaultGradleLauncher.java:147)        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:126)        at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:106)        at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:60)        at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:57)        at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:85)        at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:78)        at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:189)        at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)        at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:78)        at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:57)        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)        at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:63)        at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)        at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)        at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:50)        at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:47)        at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:47)        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)        at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)        at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)        at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)        at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)        at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)        at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)        at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)        at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)        at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)        at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)        at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)        at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)        at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)        at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)        at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)        at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)        at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:68)        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:27)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)        at org.gradle.util.Swapper.swap(Swapper.java:38)        at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)        at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)        at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)Caused by: org.gradle.process.internal.ExecException: Process 'command 'cmd'' finished with non-zero exit value 1        at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:409)        at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:38)        at org.gradle.api.tasks.AbstractExecTask.exec(AbstractExecTask.java:56)        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:49)        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:717)        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:684)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:476)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:461)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:444)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:93)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:237)        at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$1(ExecuteStep.java:33)        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:33)        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)        at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:58)        at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)        at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)        at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)        at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)        at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:35)        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)        at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)        at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)        at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:208)        at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)        at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)        at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)        at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)        at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)        at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)        at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:90)        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:69)        at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:47)        at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:140)        ... 128 more* Get more help at https://help.gradle.orgBUILD FAILED in 7m 2s

How to mock PermissionAndroid from react native

$
0
0

I'm building an android app using React-native and using PermissionsAndroid from react-native to get user permission.

import {PermissionsAndroid} from 'react-native'

Now i'm writing unit test and i need to verify the component behaviour based on the Permission.hence i need to mock PermissionsAndroid.

Is there a way to do this?

React native keyboard's height changes entire view

$
0
0

My layout with two inputs and a button works well without the keyboard. But as soon as I clicked the input box the keyboard appears and changes the height of the screen. Then things align wrong . I already tried using keyboard avoiding view. But the error is still there.

import {  StyleSheet,  Text,  View,  TextInput,  Button,  KeyboardAvoidingView,} from 'react-native';import {  Formik} from 'formik'; import React, { Component } from 'react';class Demo extends Component {    render(){  return (<KeyboardAvoidingView style={styles.container} behavior= "position , padding , height"><View style={styles.container}> <Text style={styles.titleText}>Profile settings</Text> <View style={styles.card}><Formik                initialValues={{                  name: '',                  mobile: '',                }}                onSubmit={(values) => {                  console.log(JSON.stringify(values));                }}>                {(props) => (<View><TextInput                      placeholder={'name'}                      onChangeText={props.handleChange('name')}                      value={props.values.name}                      style={styles.cardTextSmall}                    /><TextInput                      placeholder={'email'}                      onChangeText={props.handleChange('mobile')}                      value={props.values.mobile}                      style={styles.cardTextSmall}                    /><Button                     title={'submit'}                    /></View>                )}</Formik><View style={styles.centerButton}></View></View></View></KeyboardAvoidingView>  );}; }const styles = StyleSheet.create({    centerButton: {    top: '1%',    alignContent: 'center',    alignItems: 'center',  },  titleText: {    fontFamily: 'Segoe UI',    fontSize: 30,    position: 'relative',    left: '7%',    top: 72,  },  cardContent: {    paddingHorizontal: '10%',    marginHorizontal: 10,  },  cardTextLarge: {    paddingTop: '15%',    fontSize: 18,    color: '#A6A6A6',    fontFamily: 'Segoe UI',  },  cardTextSmall: {    borderBottomColor: 'black',    borderBottomWidth: 1,    fontFamily: 'Segoe UI',    fontSize: 18,    color: '#404040',  },  cardTextModule: {    paddingLeft: '15%',    paddingTop: '2%',    fontFamily: 'Segoe UI',    fontSize: 18,    width: '100%',    color: '#404040',  },  card: {    borderRadius: 6,    backgroundColor: 'red',    shadowOpacity: 0.3,    shadowOffset: {width: 1, height: 1},    marginHorizontal: 4,    left: '6.5%',    top: '19%',    height: '78%',    width: '85%',    margin: 'auto',    position: 'relative',    zIndex: -1,  },});export default Demo;

enter image description here

I'm a beginner here. If you could please give me some explanation. thanks!

How can I make two phones running the same app communicate through bluetooth [closed]

$
0
0

I would like to build an app in which a smartphone (using any OS) can discover other smartphones in the surroundings using Bluetooth. I know this can be probably achieved using BLE.

However, I would like a communication method, in which the devices can "ping" each other through Bluetooth by pressing a button within the app. The app should display something on both devices (like an image) for a few seconds if the buttons in both devices are pressed at the same time. For this, I assume BLE is not enough as it does not support communication between two smartphones and the BLE central and peripheral model does not seem to fit my goal.

I'm new to app development and while I found multiple questions on this, they are pretty old. Any thoughts on how this can be achieved.

Please give me pointers to libraries/resources which would help me achieve this.

react native: Failed to create folder: C:\test1\android\app\build\generated\res\google-services\debug

$
0
0

(I'm using Windows 10)

Many times when I build my project with

react-native run-android

I'm getting this kind of error. Each time it's a bit different, sometimes it fails to delete a directory, sometimes a file, sometimes to create a directory or a file, and also sometimes the project builds succesfully.

I have no idea why it's happening and it's very frustrating. I'm trying to run as an administrator, I even made sure that there are permissions on this directory to modify etc., I'm not sure what to do next.

Has anybody encountered such problem? Is it something specific in my environment?

Generate "out of view" markers indicators on a map with React Native

$
0
0

For a project, I have to indicate, with colored arrows, in which direction are the markers that aren't shown in the visible region.

When the user scrolls, or zoom on the map, the arrows move accordingly to where the not visible markers are compared to the current center of the visible region.

Here is a picture that demonstrate what is needed :

enter image description here

I am using react-native-mapview and added regular views over the map to show the indicators.

I've started working on this by comparing the coordinates and calculating the point of intersection between lines (border lines and line made by the 2 coordinates) at each frame. It works fine on iOS but is pretty laggy on Android, especially chan there are a lot of markers involved.

What would be the best and optimized way to do this ?

Android: Could not find any matches for com.wix:detox:+ as no versions of com.wix:detox are available

$
0
0

I had everything working with Detox (RN).Then I decided to add --production to npm install, this is supposed to skip devDependencies (this is where detox dep resides).After that, ./gradlew assembleRelease fails with

> Task :app:lintVitalRelease FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:lintVitalRelease'.> Could not resolve all artifacts for configuration ':app:debugAndroidTestRuntimeClasspath'.> Could not find any matches for com.wix:detox:+ as no versions of com.wix:detox are available.     Searched in the following locations:       - file:/home/overtorment/.m2/repository/com/wix/detox/maven-metadata.xml       - file:/tmp/bw_prod/node_modules/react-native/android/com/wix/detox/maven-metadata.xml       - file:/tmp/bw_prod/node_modules/jsc-android/dist/com/wix/detox/maven-metadata.xml       - file:/tmp/bw_prod/node_modules/detox/Detox-android/com/wix/detox/maven-metadata.xml       - https://dl.google.com/dl/android/maven2/com/wix/detox/maven-metadata.xml       - https://jcenter.bintray.com/com/wix/detox/maven-metadata.xml       - https://jitpack.io/com/wix/detox/maven-metadata.xml     Required by:         project :app

I assume it tries to include detox from node_modules which doesn't exist because it was not installed by npm, and that's why it fails.

What's the recommended best practice here would be?

Quick googling showed that this should be used only as last resort:

lintOptions {     checkReleaseBuilds false}

(build.gradle)

obviously, adding this dep via npm i detox --save fixes the build, but that will ship detox in a production build, no?


react native android keyboard empty space

$
0
0

I am trying to fix a problem we are having with the keyboard on android. Due to react-native-gifted-chat, we have to use android:windowSoftInputMode="adjustResize" instead of adjustPan. The problem is, that the chat breaks without adjustResize and all the other stuff (e.g. some textfields in a form) break without adjustPan. I also tried adjustResize|adjustPan, adjustPan|adjustResize and tried to use KeyboardAvoidingView on the Form components, but nothing seems to work. Here is how it looks like when using adjustResize without any KeyboardAvoidingView. It creates some not-clickable grey area above the keyboard. Note that there is no way around adjustResize due to the chat...

Thanks in advance!

The form ScreenWhen clicking a textinput

hey guys i'm trying to implement Push notification on my project (REACT-NATIVE + FIREBASE CLOUD MESSAGE)

$
0
0

I'm new on RN and i know nothing about JAVA or android language, but i'm trying to install manually the https://rnfirebase.io/messaging/usage - firebase cloud message for push notification first on Android but don't compile this i do not know what is going wrong that is

that is the error:

F:\Documentos\Algoritmos\React-Native\ReactNativeInit\MonacoAPP\clone2\monacoapp>yarn androidyarn run v1.19.1$ react-native run-androidinfo Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.Jetifier found 1224 file(s) to forward-jetify. Using 4 workers...info JS server already running.info Installing the app...Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details<-------------> 0% INITIALIZING [8s]> Evaluating settings> Configure project :@react-native-firebase_app:@react-native-firebase_app package.json found at F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-firebase\app\package.json:@react-native-firebase_app:firebase.bom using default value: 25.3.1:@react-native-firebase_app package.json found at F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-firebase\app\package.json:@react-native-firebase_app:version set from package.json: 7.1.0 (7,1,0 - 7001000):@react-native-firebase_app:android.compileSdk using custom value: 28:@react-native-firebase_app:android.targetSdk using custom value: 28:@react-native-firebase_app:android.minSdk using custom value: 16:@react-native-firebase_app:reactNativeAndroidDir F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\react-native\android> Configure project :@react-native-firebase_database:@react-native-firebase_database:firebase.bom using default value: 24.1.0:@react-native-firebase_database package.json found at F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-firebase\database\package.json:@react-native-firebase_database:version set from package.json: 6.7.1 (6,7,1 - 6007001):@react-native-firebase_database:android.compileSdk using custom value: 28:@react-native-firebase_database:android.targetSdk using custom value: 28:@react-native-firebase_database:android.minSdk using custom value: 16:@react-native-firebase_database:reactNativeAndroidDir F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\react-native\android> Configure project :@react-native-firebase_messaging:@react-native-firebase_messaging package.json found at F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-firebase\messaging\package.json:@react-native-firebase_app package.json found at F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-firebase\app\package.json:@react-native-firebase_messaging:firebase.bom using default value: 25.3.1:@react-native-firebase_messaging package.json found at F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-firebase\messaging\package.json:@react-native-firebase_messaging:version set from package.json: 7.1.0 (7,1,0 -7001000):@react-native-firebase_messaging:android.compileSdk using custom value: 28:@react-native-firebase_messaging:android.targetSdk using custom value: 28:@react-native-firebase_messaging:android.minSdk using custom value: 16:@react-native-firebase_messaging:reactNativeAndroidDir F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\react-native\android> Task :app:processDebugGoogleServices    Parsing json file: F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\google-services.json> Task :app:compileDebugJavaWithJavac FAILED    122 actionable tasks: 12 executed, 110 up-to-date    F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:15: error: illegal start of expression    }    ^    F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:20: error: illegal start of expression      @Override      ^    F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:20: error: ';' expected      @Override               ^    F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:21: error: ';' expected      protected String getMainComponentName() {                                           ^    F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:26: error: ';' expected      protected ReactActivityDelegate createReactActivityDelegate() {                                                                 ^    F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:34: error: reached end of file while parsing    }     ^    6 errorsFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debugoption to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 1m 25serror Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:15: error: illegal start of expression}^F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:20: error: illegal start of expression  @Override  ^F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:20: error: ';' expected  @Override           ^F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:21: error: ';' expected  protected String getMainComponentName() {                                       ^F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:26: error: ';' expected  protected ReactActivityDelegate createReactActivityDelegate() {                                                             ^F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\android\app\src\main\java\com\monacoapp\MainActivity.java:34: error: reached end of file while parsing} ^6 errorsFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debugoption to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 1m 25s    at checkExecSyncError (child_process.js:630:11)    at execFileSync (child_process.js:648:15)    at runOnAllDevices (F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)    at buildAndRun (F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)    at F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone2\monacoapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12    at processTicksAndRejections (internal/process/task_queues.js:97:5)    at async Command.handleAction (F:\Documentos\Algoritmos\React-Native\React Native Init\Monaco APP\clone 2\monacoapp\node_modules\@react-native-community\cli\build\index.js:164:9)error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.enter image description heremy dependencies:"dependencies": {"@react-native-community/async-storage": "^1.7.1","@react-native-firebase/app": "^7.1.0","@react-native-firebase/database": "^6.7.1","@react-native-firebase/messaging": "^7.1.0","axios": "^0.19.2","react": "16.9.0","react-native": "0.61.5","react-native-gesture-handler": "^1.5.2","react-native-image-picker": "^1.1.0","react-native-invertible-scroll-view": "^2.0.0","react-native-masked-text": "^1.13.0","react-native-push-notification": "^3.5.1","react-native-reanimated": "^1.4.0","react-native-screens": "1.0.0-alpha.23","react-native-simple-radio-button": "^2.7.4","react-native-vector-icons": "^6.6.0","react-navigation": "^4.0.10","react-navigation-drawer": "^2.3.3","react-navigation-stack": "^1.10.3","react-navigation-tabs": "^2.6.0"  },

i think is somethinkg about java on android but i'm following the documentation... i don't know someone can help me ?

Trying to run an app that was built on VS Code through Android Studio. I keep getting an error that says an emulator is not found

$
0
0

warn Invalid application's package name "project" in 'AndroidManifest.xml'. Read guidelines for setting the package name here: https://developer.android.com/studio/build/application-id/bin/sh: adb: command not foundinfo Launching emulator...**error** Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.info Installing the app...

The error keeps showing up even when I have my Android emulator up and running on my mac.

In development, how to listen to laptop keystrokes in react native app

$
0
0

I am looking to trigger functions from within a RN app, for example logging out without clicking a button in the app. It's for testing/development. Is there a way to send a message to the app from my laptop keyboard to the app in development? Note I am not trying to do it from the keyboard on the Android/iOS device, but instead from my laptop when running the simulator/emulator.

keyboard overplay input text in few android devices react native expo app

$
0
0

Hi I'm having an giftedchat input text overlap issue when keyboard is visible on few android devices to resolve this i tried to use keyboard-show/hide method but didn't worked also tried to using keyboard-spacer but nothing worked.This issue is not replicating on very devices currently its happening on One plus 6, samsung A-70 android version 9 Oxygen OS 9.0.9.The exact issue it not completely overlapping the input text let say only bottom border is getting under the keyboard.please find below the image to get exact idea of the issue.enter image description here

Viewing all 28460 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>