-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c157484
commit 5dea4dd
Showing
15 changed files
with
4,510 additions
and
416 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
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,3 +1,6 @@ | ||
module.exports = { | ||
presets: ['module:@react-native/babel-preset'], | ||
module.exports = function (api) { | ||
api.cache(false); | ||
return { | ||
presets: ['module:@react-native/babel-preset', "nativewind/babel"], | ||
}; | ||
}; |
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 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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,11 +1,19 @@ | ||
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config'); | ||
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config'); | ||
const { withNativeWind } = require('nativewind/metro'); | ||
|
||
/** | ||
* Metro configuration | ||
* https://reactnative.dev/docs/metro | ||
* | ||
* @type {import('metro-config').MetroConfig} | ||
*/ | ||
const config = {}; | ||
const config = mergeConfig(getDefaultConfig(__dirname), { | ||
transformer: { | ||
babelTransformerPath: require.resolve('react-native-css-transformer') | ||
}, | ||
resolver: { | ||
sourceExts: ['jsx', 'js', 'ts', 'tsx', 'css', 'json'], | ||
} | ||
}); | ||
|
||
module.exports = mergeConfig(getDefaultConfig(__dirname), config); | ||
module.exports = withNativeWind(config, { input: './global.css' }); |
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,6 @@ | ||
/// <reference types="nativewind/types" /> | ||
|
||
declare module '*.css' { | ||
const value: any; | ||
export default value; | ||
} |
Oops, something went wrong.