All Questions
Tagged with typescript react-native
3,836
questions
0
votes
0
answers
10
views
How to resolve TypeScript error: "Property 'EXPO_PUBLIC_BACKEND_URL' does not exist on type 'typeof env'"?
I'm working on a React Native project with Expo and using TypeScript. I'm trying to access an environment variable using process.env.EXPO_PUBLIC_BACKEND_URL.
"The code works correctly when I run ...
0
votes
1
answer
21
views
How to store the new Date().getTime() Method using Zustand and update the timer without re-rendering the component every second?
The stopwatch works perfectly with useState Hook, but I need to store the time using global state management. I'm using Zustand in my application and I have had no problems so far storing and updating ...
0
votes
0
answers
12
views
TypeScript JSX Syntax Error in Jest Mock for react-native-modal: Operator ‘>’ cannot be applied to types ‘View’ and ‘{ children: React.ReactNode; }’
I’m trying to create a Jest mock for react-native-modal in a React Native project using TypeScript. However, TypeScript doesn’t recognize the return statement as valid JSX. It throws the following ...
0
votes
0
answers
13
views
my react-native typescript android app is crashing when i will redirect to screen in which i have used react-native-qrcode-scanner
"react-native-qrcode-scanner": "^1.5.5",
"react-native-camera": "^4.2.1",
"react-native-permissions": "^4.1.5",
"react": "18....
0
votes
0
answers
11
views
How can I create a extension from the interface inside of a external npm package in typescript?
in react-native typescript, I use a npm called react-native-sqlite-storage, that npm has a interface like this inside its node_modules
export interface SQLiteDatabase {
dbname: string;
...
0
votes
0
answers
12
views
Export subpath for a react-native library
i m trying to create a react-native library which export some components and utilities. I'd like to be able to import my code like this :
import { RandomComponent } from 'mylibrary';
import { ...
0
votes
1
answer
15
views
Typescript React Native Image Picker double-tap issue (non expo)
So, there's some good news and some bad news.
The good news is that the code below works.
The bad news is that I have to pick the image twice before it displays client-side.
Import code: import {...
-1
votes
0
answers
17
views
React Native Error: No suitable URL request handler found for ph://.../L0/001 [closed]
I am building a chat app using React Native in VSCode, Expo and Getstream. When I'm using the simulator and try to send a photo I am getting the error "No suitable URL request handler found for ...
0
votes
0
answers
16
views
Determine whether a point is in a boundary or not
I'm trying to solve a problem about Point and Boundary.
My problem:
I setup a Map where user can tap to pin a marker, whenever user pin a marker, I will send that marker LatLng server to check ...
0
votes
0
answers
15
views
Metro unable to resolve nx libraries after upgrade from RN 0.72.8
When trying to start the application, Metro doesn't compile the React Native app because:
Metro has encountered an error:
Error: Cannot resolve package.json
at /Users/michaelwijnands/Projects/...
0
votes
0
answers
17
views
Android devices rendering blank screen on my react-native app because of react-i18next
So I've been trying to figure out the root of this problem for 2 days now. I finally found it by removing the I18nextProvider wrapper from my App.tsx module. This is odd, because it works perfectly on ...
-2
votes
0
answers
19
views
React native ecg charts [closed]
For my React Native project, I need to implement an ECG chart. I have already tried several libraries, including svg-charts, react-native-charts-wrapper, react-native-chart-kit, react-native-...
0
votes
0
answers
43
views
How to Force TypeScript to Ignore react-native-moengage Errors
I'm working on a React Native project using the react-native-moengage module for analytics. Unfortunately, this library lacks proper TypeScript definitions, and I'm encountering TypeScript errors when ...
0
votes
0
answers
23
views
Detect when an audio has finished being produced with expo-av
I have this function in react-native with expo-av
const [currentSound, setCurrentSound] = useState<Audio.Sound | null>(null)
const [playingIndex, setPlayingIndex] = useState<number | null&...
-1
votes
0
answers
22
views
Notifee notification property 'ab_cat' does not exist on type
I am trying to access the ab_cat prop from the detail object - I get a typescript error below. How can I fix this?
Property 'ab_cat' does not exist on type 'string | number | object'.
Property '...