aksonov / aksonov/react-native-router-flux

How to create tabBarComponent with top borderRadius without white space in the background ?

Ouverte
#3,733 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
8.9k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Version
- "react-native-router-flux": "4.2.0-beta.1"
- "react-native": "0.63.3"
- "react": "16.13.1"

How to create tabBarComponent with top borderRadius that not push the scene up ?

My goal, in the end, is to create tabBarComponent with a rounded radius, but I get in the rounded area white color background, and I need to see the scene view in the background.

` `

import React, { useState } from 'react';
import { View, TouchableOpacity, StyleSheet } from 'react-native';
import { useSelector, useDispatch } from 'react-redux';
import _ from 'lodash';

const Main = ({ }) => {
return (



);
};
const styles = StyleSheet.create({

});

export default Main;

import React, { useState } from 'react';
import { View, TouchableOpacity, StyleSheet } from 'react-native';
import _ from 'lodash';


const BottomNavigation = ({ navigation }) => {

return (


);
};
const styles = StyleSheet.create({
bottomNavigationContainer: {
height: 79,
backgroundColor: 'green',
flexDirection: 'row',
justifyContent: 'space-around',
paddingTop: 12,
borderRadius: 20,
}
});

export default BottomNavigation;

![Screen Shot 2021-02-01 at 22 02 31](https://user-images.githubusercontent.com/12031960/106512931-ec988a00-64da-11eb-8bdf-94325fb7bdcb.png)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.