Questions tagged [react-native-community]
24 questions
0
votes
1 answer
React Native: how to build a list without a defined item size? (Item size depending on the content inside it)
I am developing a feature similar to a comment screen. As we know, comments have different lengths in which often require bigger or lesser space to contain itself inside a list item.
But apparently, inside my flatlist I am out of ideas to keep the…

Ryan Wang
- 418
- 7
- 23
0
votes
1 answer
error: unknown command 'link' when linking @react-native-community/voice shows
I'm trying to implement speech-to-text function in ReactNative. The steps I've done:
1.Run npm i @react-native-community/voice --save in VSCode terminal
2.react-native link @react-native-community/voice. Then it shows .ps1 cannot be loaded because…

AhChing11
- 125
- 1
- 3
- 15
0
votes
0 answers
Why should I use await before AsyncStorage.setItem()?
In order to set value in AsyncStorage we use
await AsyncStorage.setItem();
but what is the difference if I use
AsyncStorage.setItem() ; //Not used await.
I've tried it and value will get set to AsyncStorage.
Is it guarantee that value will get set…

Kailash
- 777
- 4
- 19
0
votes
1 answer
How do I change the button title with the date value after a date is chosen from React-Native DateTimePicker?
Currently the default setting of the button title is 'SELECT DATE', I would like this title to change to 'YYYY-MM-DD' based on the value chosen in the datepicker. I used { selectedDate ? > : > } conditioning on the title but it wouldn't change…

pyrochan157
- 49
- 4
0
votes
0 answers
Why I am keep getting "Element type is invalid" error with react-native-community checkbox?
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and…

Preyash Hojiwala
- 31
- 6
0
votes
2 answers
React native camera roll not returning any images in getPhotos and getAlbums method in ios
I am currently using @react-native-community/cameraroll currently and i am trying to get images and albums on my ios device.
The following is the code I tried
CameraRoll.getPhotos({})
.then((res) => {
…

Fullmetal
- 57
- 1
- 12
0
votes
1 answer
How to achive gradient in @react-native-community/slider
I m using this package for the slider and I want to achieve gradient within the slider as shown in the image below how do I get this?

Sandeep Sharma
- 639
- 2
- 9
- 34
0
votes
1 answer
React native use latest commit on master for a dependency
I want this fix for react-native-art/art crashing on (void)setShadow:(ARTShadow)shadow. But there has been no public release after v1.2.0 to include this fix. I have confirmed the fix works by manually adding the diff. But this is not a long-term…

Parth
- 2,682
- 1
- 20
- 39
-1
votes
2 answers
Custom spinner picker date time with day but not have time
I have trouble with date time picker with mode datetime, currently i use @react-native-community/datetimepicker lib for showing spinner but in iOS i need remove time, only with current day (today, monday, tuesday, ... ) then date.
Anyone has suggest…

Minh Vo
- 120
- 6