aksonov / aksonov/react-native-router-flux

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

未關閉
#3,733 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
8.9k
分支
2.1k
PR 合併指標
30 天內沒有已合併 PR

描述

### 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)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。