We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yes
https://mitosis.builder.io/playground/?code=KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnAMLoDOMEAtgELox14AUAlHAN4BQcOFGAx0UcgB4ARizZwyFTMQIBrALw8ucNQD44BMtQiZgAOkwQA5uwBEMYLRucAvjoCCCBBID0M1mR0Abj5nPiA%3D
That react-native output should have no bugs for a simple Mitosis button.
Following this guide: https://mitosis.builder.io/docs/quickstart/.
react-native output does not match the related playground link.
Instead, it creates the following:
import { FlatList, ScrollView, View, StyleSheet, Image, Text, Pressable, TextInput, TouchableOpacity, Button, Linking, } from "react-native"; function CustomButton(props: any) { return ( <Button onPress={(event) => console.log("test")}> <Text>Add</Text> </Button> ); } export default CustomButton;
It should use Pressable instead.
Pressable
/** * @type {import('@builder.io/mitosis').MitosisConfig} */ module.exports = { files: "src/**", targets: ["react", "reactNative"], dest: "packages", commonOptions: { typescript: true, }, options: { react: { stylesType: "style-tag", }, reactNative: {}, svelte: {}, qwik: {}, }, };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
https://mitosis.builder.io/playground/?code=KYDwDg9gTgLgBAE2AMwIYFcA29noHYDGMAlhHnAMLoDOMEAtgELox14AUAlHAN4BQcOFGAx0UcgB4ARizZwyFTMQIBrALw8ucNQD44BMtQiZgAOkwQA5uwBEMYLRucAvjoCCCBBID0M1mR0Abj5nPiA%3D
Expected Behaviour
That react-native output should have no bugs for a simple Mitosis button.
Actual Behaviour
Following this guide: https://mitosis.builder.io/docs/quickstart/.
react-native output does not match the related playground link.
Instead, it creates the following:
It should use
Pressable
instead.Additional Information
The text was updated successfully, but these errors were encountered: