App.js
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/native-stack';
import HomeScreen from './components/Homepage'
import ProfileScreen from './components/Pr
我想创建一个像这样的图像网格,但我没有从设备获得相机滚动。我尝试过使用@react-native-community/cameraroll,但它似乎不起作用,这是我的代码。
import React,{useState, useEffect} from 'react';
import {View} from 'react-native';
import * as Permissions from 'expo-permissions';
import CameraRoll from "@react-native-community
when I start pod install the result :
CocoaPods could not find compatible versions for pod "RNDateTimePicker":
In Podfile:
RNDateTimePicker (from `../node_modules/@react-native-community/datetimepicker`)
Specs satisfying the `RNDateTimePicker (from `../node_modules/@react-native-com
我正在做导航与新的反应本机导航,所有我想要的是当按钮被按下它导航到下一个屏幕,我已经遵循了新的文档,但问题是,我正在做的所有工作与类和文档中的函数在App.js中,我试图修改我的代码,但不能做的类,因为onPress按钮,它没有导航,而是给我错误。这是我的app.js:
import * as React from 'react';
import { Button, View, Text } from 'react-native';
import { NavigationContainer,useNavigation } from '@react-nav