Skip to content

Commit

Permalink
24 styling + home screen (#27)
Browse files Browse the repository at this point in the history
* done seekHelp midfi

* moved caret + made button collapsable

* styling changes

* styling progress

* done seekHelp midfi

* styling progress

* oh my god my hair is falling out

* styling pt 1

* styling pt 1

* styling pt 1

---------

Co-authored-by: philipye314 <philipye314@gmail.com>
  • Loading branch information
angelinetu and philipye314 authored Dec 4, 2024
1 parent e9c1d1f commit 7ace705
Show file tree
Hide file tree
Showing 21 changed files with 1,280 additions and 50 deletions.
19 changes: 10 additions & 9 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
module.exports = function (api) {
module.exports = api => {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
'module:react-native-dotenv',
{
root: ['./'],
alias: {
'@': './src',
'~': './',
},
include: ['./'],
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
envName: 'APP_ENV',
moduleName: '@env',
path: '.env',
blocklist: null,
allowlist: null,
safe: false,
allowUndefined: true,
verbose: false,
},
],
],
Expand Down
11 changes: 8 additions & 3 deletions graphics.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ declare module '*.png' {
}

declare module '*.svg' {
import { ImageSourcePropType } from 'react-native';
const value: ImageSourcePropType;
export default value;
import * as React from 'react';

export const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement> & { title?: string }
>;

const src: string;
export default src;
}

declare module '*.jpg' {
Expand Down
27 changes: 27 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const path = require('path');
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

const defaultConfig = getDefaultConfig(__dirname);
const {
resolver: { sourceExts, assetExts },
} = defaultConfig;

/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {
transformer: {
babelTransformerPath: require.resolve('react-native-svg-transformer'),
},
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
//resolverMainFields: ['sbmodern', 'react-native', 'browser', 'main'],
},
watchFolders: [path.resolve(__dirname, '../')],
};

module.exports = mergeConfig(defaultConfig, config);
Loading

0 comments on commit 7ace705

Please sign in to comment.