Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
LearnMoreLinks,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';
import DeviceInfo from 'react-native-device-info'

type SectionProps = PropsWithChildren<{
title: string;
Expand Down Expand Up @@ -96,7 +97,8 @@ function App(): React.JSX.Element {
}}>
<Section title="Step One">
Edit <Text style={styles.highlight}>App.tsx</Text> to change this
screen and then come back to see your edits.
CECI EST UN TEST.
<Text>{DeviceInfo.getVersion()}</Text>
</Section>
<Section title="See Your Changes">
<ReloadInstructions />
Expand Down Expand Up @@ -136,6 +138,16 @@ const styles = StyleSheet.create({
highlight: {
fontWeight: '700',
},
button: {
padding: 15,
alignItems: 'center',
borderRadius: 5,
},
text: {
backgroundColor: 'transparent',
fontSize: 15,
color: '#fff',
},
});

export default App;
export default App;
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.soloader.OpenSourceMergedSoMapping
import com.facebook.soloader.SoLoader


class MainApplication : Application(), ReactApplication {

override val reactNativeHost: ReactNativeHost =
Expand All @@ -20,6 +21,8 @@ class MainApplication : Application(), ReactApplication {
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
// Manually add LinearGradient package
//add(LinearGradientPackage())
}

override fun getJSMainModuleName(): String = "index"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.soloader.OpenSourceMergedSoMapping
import com.facebook.soloader.SoLoader
import com.callstack.react.BuildConfig

class RNBridgeManager {
companion object {
val shared: RNBridgeManager by lazy { RNBridgeManager() }
private var reactNativeHost: ReactNativeHost? = null
private var reactHost: ReactHost? = null

}

fun getReactNativeHost(): ReactNativeHost? {
Expand Down
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,28 @@
"brownfield:android": "./scripts/build-aar.sh"
},
"dependencies": {
"@datadog/mobile-react-native": "^2.11.0",
"expo": "51.0.22",
"expo-asset": "10.0.10",
"expo-av": "14.0.6",
"expo-crypto": "13.0.2",
"expo-datadog": "51.0.2",
"expo-file-system": "17.0.1",
"expo-haptics": "13.0.1",
"expo-image-picker": "15.0.7",
"expo-keep-awake": "13.0.2",
"expo-linear-gradient": "13.0.2",
"expo-local-authentication": "14.0.1",
"expo-location": "17.0.1",
"expo-modules-core": "^2.5.0",
"expo-secure-store": "13.0.2",
"expo-sensors": "13.0.9",
"expo-splash-screen": "0.27.5",
"expo-store-review": "7.0.2",
"expo-system-ui": "3.0.7",
"react": "19.0.0",
"react-native": "0.79.2"
"react-native": "0.79.2",
"react-native-device-info": "9.0.2"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand Down
4 changes: 4 additions & 0 deletions scripts/build-aar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ echo -e "✅ AARs built successfully: \n android/react-brownfield/build/outputs/
./gradlew publishToMavenLocal

echo "✅ AARs published to mavenLocal: com.callstack.react:react-brownfield"

./gradlew -p ../test-apps/android build --refresh-dependencies

echo "✅ Test app built successfully"
Loading