Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

react native ios safe area padding not working

// use SafeAreaProvider instead, it works with both ios and android
...
import { SafeAreaProvider } from 'react-native-safe-area-context';

function App() {
  return <SafeAreaProvider>...</SafeAreaProvider>;
}
// or
export const Container = styled(SafeAreaProvider)`
	...
`;
Source by github.com #
 
PREVIOUS NEXT
Tagged: #react #native #ios #safe #area #padding #working
ADD COMMENT
Topic
Name
3+1 =