-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: get bottom sheets + icons working
the app is now more functional although still rather borked
- Loading branch information
Showing
9 changed files
with
286 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* @format | ||
*/ | ||
|
||
import {AppRegistry} from 'react-native'; | ||
|
||
import {App} from './App'; | ||
import './i18n/i18n'; | ||
|
||
import {name as appName} from './app.json'; | ||
|
||
import MaterialIconFont from 'react-native-vector-icons/Fonts/MaterialIcons.ttf'; | ||
import MaterialCommunityIconFont from 'react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf'; | ||
|
||
const iconFontStyles = `@font-face { | ||
src: url(${MaterialCommunityIconFont}); | ||
font-family: MaterialCommunityIcons; | ||
} | ||
@font-face { | ||
src: url(${MaterialIconFont}); | ||
font-family: MaterialIcons; | ||
}`; | ||
|
||
// Create a stylesheet | ||
const style = document.createElement('style'); | ||
style.type = 'text/css'; | ||
|
||
// Append the iconFontStyles to the stylesheet | ||
if (style.styleSheet) { | ||
style.styleSheet.cssText = iconFontStyles; | ||
} else { | ||
style.appendChild(document.createTextNode(iconFontStyles)); | ||
} | ||
|
||
// Inject the stylesheet into the document head | ||
document.head.appendChild(style); | ||
|
||
AppRegistry.registerComponent(appName, () => App); | ||
|
||
AppRegistry.runApplication(appName, {rootTag: document.getElementById('root')}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import {Image as CoreImage, Platform} from 'react-native'; | ||
// import FastImage from 'react-native-fast-image'; | ||
import FastImage from 'react-native-fast-image'; | ||
|
||
// FIXME: this needs to use fastimage on other platforms | ||
export const Image = Platform.OS !== 'web' ? CoreImage : CoreImage; | ||
export const Image = FastImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import {Image as CoreImage} from 'react-native'; | ||
|
||
export const Image = CoreImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.