Closed sanjeevyadavIT closed 5 years ago
Describe the bug sans-serif font family is not available in iOS, so app will crash.
sans-serif
Current Behavior App will crash in iOS device
Steps to Reproduce Please provide detailed steps for reproducing the issue.
Change these lines
import colors from './colors'; const fontFamily = 'sans-serif';
With these lines
import { Platform } from 'react-native'; import colors from './colors'; const fontFamily = Platform.select({ android: 'sans-serif', ios: 'Helvetica' });
Additional context Add any other context about the problem here.
Can i do this?
Sure :+1:
and please commit message should be in format as described in contributing file
definitely!
Describe the bug
sans-serif
font family is not available in iOS, so app will crash.Current Behavior App will crash in iOS device
Steps to Reproduce Please provide detailed steps for reproducing the issue.
Change these lines
With these lines
Additional context Add any other context about the problem here.