The default Babel preset for Fooxly projects using React.
About 40% of your donation goes to one of the charities we support. For further information or questions please visit our website or contact us via charity@fooxly.com.
npm install --save-dev @fooxly/babel-preset-reactyarn add -D @fooxly/babel-preset-react{
"presets": ["@fooxly/babel-preset-react"]
}...
"babel": {
"presets": ["@fooxly/babel-preset-react"]
}
...Make sure to check out the README of the Metro Babel preset in order to use the latest available React Native technologies.
You must include the noEnv: true option and require this preset after the Metro one, in order for this preset to work with React Native.
{
"presets": [
"module:metro-react-native-babel-preset",
["@fooxly/babel-preset-react", { "noEnv": true }]
]
}